model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : EpisodeStatus
return EpisodeStatus the static model class
Example #1
0
 /**
  * @covers EpisodeStatus::model
  */
 public function testModel()
 {
     $this->assertEquals('EpisodeStatus', get_class(EpisodeStatus::model()), 'Class name should match model.');
 }
Example #2
0
echo $form->radioButtons($macro, 'recipient_id', CHtml::listData(LetterRecipient::model()->findAll(array('order' => 'display_order asc')), 'id', 'name'), null, false, false, false, false, array('empty' => 'None', 'empty-after' => true));
?>
        <?php 
echo $form->checkBox($macro, 'cc_patient', array('text-align' => 'right'));
?>
        <?php 
echo $form->checkBox($macro, 'cc_doctor', array('text-align' => 'right'));
?>
        <?php 
echo $form->checkBox($macro, 'cc_drss', array('text-align' => 'right'));
?>
        <?php 
echo $form->checkBox($macro, 'use_nickname', array('text-align' => 'right'));
?>
        <?php 
echo $form->dropDownList($macro, 'episode_status_id', CHtml::listData(EpisodeStatus::model()->findAll(array('order' => 'id asc')), 'id', 'name'), array('empty' => '- None -'));
?>
        <?php 
echo $form->textArea($macro, 'body');
?>

        <div class="row field-row">
            <div class="large-10 large-offset-2 column shortCodeDescription">
                &nbsp;
            </div>
        </div>
        <div class="row field-row">
            <div class="large-8 large-offset-2 column">
                <div class="row field-row">
                    <div class="large-3 column">
                        <label for="shortcode">