Disorder::model PHP Method

model() public static method

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

Usage Example

コード例 #1
0
 /**
  * @covers CommonSystemicDisorder::getList
  */
 public function testGetList()
 {
     $expected = array();
     foreach ($this->commonsystemicdisorder as $data) {
         $disorder = Disorder::model()->findByPk($data['disorder_id']);
         $expected[$disorder->id] = $disorder->term;
     }
     $firm = $this->getMockBuilder('Firm')->disableOriginalConstructor()->getMock();
     $this->assertEquals($expected, $this->model->getList($firm), 'List results should match.');
 }
All Usage Examples Of Disorder::model