__construct() public method

Constructor.
public __construct ( string $modelClass, array $config = [] )
$modelClass string the model class associated with this query
$config array configurations to be applied to the newly created query object
Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function __construct($modelClass, $config = [])
 {
     if ($modelClass != User::class && $modelClass != AuthUser::class) {
         throw new InvalidConfigException('Mauvais contexte d\'appel');
     }
     parent::__construct($modelClass, $config);
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function __construct($config = [])
 {
     parent::__construct(WebNews::class, $config);
 }
Exemplo n.º 3
0
 /**
  * @inheritdoc
  */
 public function __construct($config = [])
 {
     parent::__construct(Role::class, $config);
 }
Exemplo n.º 4
0
 public function __construct($modelClass, $config = [])
 {
     parent::__construct($modelClass, $config);
     $this->finder = CActiveRecord::model($modelClass);
 }
Exemplo n.º 5
0
 /**
  * @inheritdoc
  */
 public function __construct($config = [])
 {
     parent::__construct(BaseText::class, $config);
 }