OphTrOperationbooking_Operation_Theatre::model PHP Метод

model() публичный статический Метод

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
Результат the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

Пример #1
0
				<label for="">Firm:</label>
			</div>
			<div class="large-5 column end">
				<?php 
echo CHtml::dropDownList('inline_firm_id', '', Firm::model()->getListWithSpecialties(), array('empty' => '- Don\'t change -'));
?>
				<span class="error"></span>
			</div>
		</div>
		<div class="row field-row">
			<div class="large-2 column">
				<label for="">Theatre:</label>
			</div>
			<div class="large-5 column end">
				<?php 
echo CHtml::dropDownList('inline_theatre_id', '', CHtml::listData(OphTrOperationbooking_Operation_Theatre::model()->active()->findAll(), 'id', 'name'), array('empty' => '- Don\'t change -'));
?>
				<span class="error"></span>
			</div>
		</div>
		<div class="row field-row">
			<div class="large-2 column">
				<label for="">Start date:</label>
			</div>
			<div class="large-2 column end">
				<?php 
$this->widget('zii.widgets.jui.CJuiDatePicker', array('name' => 'inline_start_date', 'id' => 'inline_start_date', 'options' => array('showAnim' => 'fold', 'dateFormat' => Helper::NHS_DATE_FORMAT_JS), 'value' => ''));
?>
				<span class="error"></span>
			</div>
		</div>
All Usage Examples Of OphTrOperationbooking_Operation_Theatre::model