Export::model PHP Method

model() public static method

public static model ( null | string $className = __CLASS__ )
$className null | string
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @param $id
  * @return Export
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = Export::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, Yii::t('YmlModule.default', 'Page not found!'));
     }
     return $model;
 }
All Usage Examples Of Export::model