model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
return the static model class
Exemplo n.º 1
0
 /**
  * Simple abstraction wrapper to get the patient factors that should be rendered in the event form.
  *
  * @return mixed
  */
 public function getPatientFactors()
 {
     return models\OphCoCvi_ClericalInfo_PatientFactor::model()->active()->findAll();
 }