public static model ( $className = __CLASS__ ) : |
||
return | the static model class |
public static function model($className = __CLASS__)
{
return parent::model($className);
}
/** * Get the next workflow step. * * @param Event $event * * @return OphCiExamination_ElementSet */ protected function getNextStep($event = null) { if (!$event) { $event = $this->event; } if ($assignment = models\OphCiExamination_Event_ElementSet_Assignment::model()->find('event_id = ?', array($event->id))) { $step = $assignment->step; } else { $step = $this->getFirstStep(); } return $step->getNextStep(); }