예제 #1
0
 /**
  * Implemented because we need to reset the participant data.
  */
 public function find()
 {
     $this->_isFirst = true;
     $this->_participantData = null;
     $this->_participantDataInDb = null;
     // This is very uncool, but activeRecord declares find()
     // while expecting find($id)...
     $args = func_get_args();
     if (1 != count($args)) {
         throw new Phprojekt_ActiveRecord_Exception('Wrong number of arguments for find');
     }
     $find = parent::find($args[0]);
     if (is_object($find)) {
         $find->_originalStart = new Datetime('@' . Phprojekt_Converter_Time::userToUtc($find->start));
     }
     return $find;
 }
예제 #2
0
 /**
  * Set the parent related minutes object.
  *
  * @param integer $minutesId Parent minute ID.
  *
  * @return void
  */
 public function setParent($minutesId)
 {
     $this->_minutes = new Minutes_Models_Minutes();
     $this->_minutes = $this->_minutes->find($minutesId);
 }