Open Journal Systems  3.0.0
 All Classes Namespaces Functions Variables Groups Pages
SubmissionLanguageEntryDAO.inc.php
1 <?php
2 
17 import('lib.pkp.classes.submission.SubmissionLanguage');
18 import('lib.pkp.classes.controlledVocab.ControlledVocabEntryDAO');
19 
25  parent::ControlledVocabEntryDAO();
26  }
27 
32  function newDataObject() {
33  return new SubmissionLanguage();
34  }
35 
42  function getByControlledVocabId($controlledVocabId, $rangeInfo = null) {
43  $result = $this->retrieveRange(
44  'SELECT cve.* FROM controlled_vocab_entries cve WHERE cve.controlled_vocab_id = ? ORDER BY seq',
45  array((int) $controlledVocabId),
46  $rangeInfo
47  );
48 
49  $returner = new DAOResultFactory($result, $this, '_fromRow');
50  return $returner;
51  }
52 }
53 
54 ?>
Basic class describing a submission language.
Operations for retrieving and modifying a submission&#39;s languages.
& retrieveRange($sql, $params=false, $dbResultRange=null, $callHooks=true)
Definition: DAO.inc.php:174
Wrapper around ADORecordSet providing &quot;factory&quot; features for generating objects from DAOs...
Operations for retrieving and modifying ControlledVocabEntry objects.
getByControlledVocabId($controlledVocabId, $rangeInfo=null)