OphTrOperationbooking_Admission_Letter_Warning_Rule_Type::model PHP Méthode

model() public static méthode

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

Usage Example

		<div class="box-actions">
			<?php 
echo EventAction::button('Add', 'add_letter_contact_rule', null, array('class' => 'button small'))->toHtml();
?>
		</div>
	</header>

	<form id="rulestest" class="panel">
		<fieldset>
			<legend>
				Test:
			</legend>
			<div class="row field-row">
				<div class="large-2 column">
					<?php 
echo CHtml::dropDownList('lcr_rule_type_id', '', CHtml::listData(OphTrOperationbooking_Admission_Letter_Warning_Rule_Type::model()->findAll(), 'id', 'name'), array('empty' => '- Rule -'));
?>
				</div>
				<div class="large-2 column">
					<?php 
echo CHtml::dropDownList('lcr_site_id', '', Site::model()->getListForCurrentInstitution('name'), array('empty' => '- Site -'));
?>
				</div>
				<div class="large-2 column">
					<?php 
echo CHtml::dropDownList('lcr_subspecialty_id', '', CHtml::listData(Subspecialty::model()->findAllByCurrentSpecialty(), 'id', 'name'), array('empty' => '- Subspecialty -'));
?>
				</div>
				<div class="large-2 column">
					<?php 
echo CHtml::dropDownList('lcr_firm_id', '', array(), array('empty' => '- Firm -'));
All Usage Examples Of OphTrOperationbooking_Admission_Letter_Warning_Rule_Type::model
OphTrOperationbooking_Admission_Letter_Warning_Rule_Type