AddressType::model PHP Method

model() public static method

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

Usage Example

Example #1
0
 private static function getAddressType($addr_type)
 {
     switch ($addr_type) {
         case 'HOME':
             return \AddressType::model()->find('name=?', array('Home'))->id;
     }
     return;
 }
All Usage Examples Of AddressType::model