UniqueCodeMapping::model PHP Méthode

model() public static méthode

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

Usage Example

Exemple #1
0
 protected function getUniqueCode()
 {
     $userUniqueCode = UniqueCodeMapping::model()->findByAttributes(array('user_id' => $this->id));
     return $userUniqueCode->unique_code_id;
 }
All Usage Examples Of UniqueCodeMapping::model