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
 /**
  * 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;
 }
 * @license http://www.gnu.org/licenses/gpl-3.0.html The GNU General Public License V3.0
 */
echo $form->dropDownList($element, 'power_id', CHtml::listData(OphTrOperationnote_Trabectome_Power::model()->activeOrPk($element->power_id)->findAll(), 'id', 'name'), array('empty' => '- Please select -'), false, array('field' => 3));
echo $form->checkbox($element, 'blood_reflux', array('class' => 'clearWithEyedraw'));
echo $form->checkbox($element, 'hpmc', array('class' => 'clearWithEyedraw'));
echo $form->textArea($element, 'description', array('rows' => 4, 'class' => 'autosize clearWithEyedraw'));
?>
<div class="row field-row">
	<div class="large-3 column">&nbsp;</div>
	<div class="large-4 column end">
		<button id="btn-trabectome-report" class="ed_report secondary small">Report</button>
		<button class="ed_clear secondary small">Clear</button>
	</div>
</div>
<?php 
$complications = OphTrOperationnote_Trabectome_Complication::model()->activeOrPk($element->getComplicationIDs())->findAll(array('order' => 'display_order asc'));
$html_options = array('empty' => '- Complications -', 'label' => 'Complications', 'options' => array());
foreach ($complications as $comp) {
    $html_options['options'][$comp->id] = array('data-other' => $comp->other);
}
echo $form->multiSelectList($element, CHtml::modelName($element) . '[complications]', 'complications', 'id', CHtml::listData($complications, 'id', 'name'), null, $html_options, false, false, null, false, false, array('field' => 4));
?>
<div class="row field-row<?php 
if (!$element->hasOtherComplication()) {
    echo ' hidden';
}
?>
" id="div_<?php 
echo CHtml::modelName($element);
?>
_complication_other">