model() публичный статический Метод

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Element_OphCiExamination_CataractSurgicalManagement
Результат Element_OphCiExamination_CataractSurgicalManagement the static model class
 public function getFirstEyeOrSecondEye($criteria)
 {
     $cataractManagementElement = \OEModule\OphCiExamination\models\Element_OphCiExamination_CataractSurgicalManagement::model()->with(array('event'))->find($criteria);
     if ($cataractManagementElement) {
         return $cataractManagementElement->eye['name'];
     }
 }