Element_OphTrOperationbooking_Operation::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

 public function testSetOperationStatus_ScheduledOrRescheduled_Rescheduled()
 {
     $api = Yii::app()->moduleAPI->get('OphTrOperationbooking');
     $eo = $this->el_o('eo12');
     $api->setOperationStatus($eo->event_id, 'Scheduled or Rescheduled');
     $this->assertEquals('Rescheduled', Element_OphTrOperationbooking_Operation::model()->find('event_id=?', array($eo->event_id))->status->name);
 }
All Usage Examples Of Element_OphTrOperationbooking_Operation::model