public static model ( $className = __CLASS__ ) : |
||
return | the static model class |
public static function model($className = __CLASS__)
{
return parent::model($className);
}
public function getFirstEyeOrSecondEye($criteria) { $cataractManagementElement = \OEModule\OphCiExamination\models\Element_OphCiExamination_CataractSurgicalManagement::model()->with(array('event'))->find($criteria); if ($cataractManagementElement) { return $cataractManagementElement->eye['name']; } }