Пример #1
0
 /**
  * Constructor.
  * @param string $modelClass the model class associated with this query
  * @param array $config configurations to be applied to the newly created query object
  */
 public function __construct($modelClass, $config = [])
 {
     $this->modelClass = $modelClass;
     parent::__construct($config);
 }
Пример #2
0
 public function __construct($params)
 {
     parent::__construct();
     $this->setUrlParams($params);
 }