Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the | ||
리턴 | the | static model class |
/** * get the valid stat periods for the given side. * * @param type $side * * @return type */ public function getStartPeriodsForSide($side) { return OphCoTherapyapplication_ExceptionalCircumstances_StartPeriod::model()->activeOrPk($this->{$side . '_start_period_id'})->findAll(); }
<div class="banner clearfix"> <?php echo $logoHelper->render('letter_head'); ?> </div> <body> <?php $exam_api = Yii::app()->moduleAPI->get('OphCiExamination'); $ccg = $patient->getCommissioningBodyOfType($cbody_type); ?> <h5>Individual Treatment Funding Request (IFR) Application</h5> <table nobr="true" class="urgency" cellpadding="5"> <?php foreach (OphCoTherapyapplication_ExceptionalCircumstances_StartPeriod::model()->active()->findAll() as $period) { ?> <tr> <td class="label"> <?php echo $period->application_description; ?> </td> <td class="selector"> <?php if ($exceptional->{$side . '_start_period_id'} == $period->id) { echo 'X'; } else { echo ' '; } ?> </td>