Example #1
0
 /**
  * Internal function to return a Journal object from a row.
  * @param $row array
  * @return Journal
  */
 function _fromRow($row)
 {
     $journal = parent::_fromRow($row);
     $journal->setPrimaryLocale($row['primary_locale']);
     $journal->setEnabled($row['enabled']);
     HookRegistry::call('JournalDAO::_returnJournalFromRow', array(&$journal, &$row));
     return $journal;
 }
Example #2
0
 /**
  * Internal function to return a Press object from a row.
  * @param $row array
  * @return Press
  */
 function _fromRow($row)
 {
     $press = parent::_fromRow($row);
     $press->setPrimaryLocale($row['primary_locale']);
     $press->setEnabled($row['enabled']);
     HookRegistry::call('PressDAO::_fromRow', array(&$press, &$row));
     return $press;
 }
Example #3
0
 /**
  * Internal function to return a Conference object from a row.
  * @param $row array
  * @return Conference
  */
 function _fromRow($row)
 {
     $conference = parent::_fromRow($row);
     $conference->setPrimaryLocale($row['primary_locale']);
     $conference->setEnabled($row['enabled']);
     HookRegistry::call('ConferenceDAO::_returnConferenceFromRow', array(&$conference, &$row));
     return $conference;
 }
Example #4
0
 /**
  * Internal function to return a scheduled conference object from a row.
  * @param $row array
  * @return SchedConf
  */
 function _fromRow($row)
 {
     $schedConf = parent::_fromRow($row);
     $schedConf->setConferenceId($row['conference_id']);
     $schedConf->setStartDate($this->datetimeFromDB($row['start_date']));
     $schedConf->setEndDate($this->datetimeFromDB($row['end_date']));
     HookRegistry::call('SchedConfDAO::_returnSchedConfFromRow', array(&$schedConf, &$row));
     return $schedConf;
 }