OphTrOperationnote_Trabectome_Complication::model PHP 메소드

model() 공개 정적인 메소드

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

Usage Example

예제 #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