OphTrOperationnote_Trabectome_Complication::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : OphTrOperationnote_Trabectome_Complication
return OphTrOperationnote_Trabectome_Complication the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

Esempio n. 1
0
 /**
  * Set the complications for the Element_OphTrOperationote_Trabectome element.
  *
  * @param $element
  * @param $data
  * @param $index
  */
 protected function setComplexAttributes_Element_OphTrOperationnote_Trabectome($element, $data, $index)
 {
     $model_name = CHtml::modelName($element);
     $complications = array();
     if (@$data[$model_name]['complications']) {
         foreach ($data[$model_name]['complications'] as $id) {
             $complications[] = OphTrOperationnote_Trabectome_Complication::model()->findByPk($id);
         }
     }
     $element->complications = $complications;
 }
All Usage Examples Of OphTrOperationnote_Trabectome_Complication::model