model() 공개 정적인 메소드

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : AddressType
리턴 AddressType the static model class
예제 #1
0
 private static function getAddressType($addr_type)
 {
     switch ($addr_type) {
         case 'HOME':
             return \AddressType::model()->find('name=?', array('Home'))->id;
     }
     return;
 }
예제 #2
0
 /**
  * @covers AddressType::model
  */
 public function testModel()
 {
     $this->assertEquals('AddressType', get_class(AddressType::model()), 'Class name should match model.');
 }