application/backend/actions/AutocompleteAction.php 1 location
|
@@ 18-26 (lines=9) @@
|
| 15 |
|
public $query_variable = 'q'; |
| 16 |
|
public $search_attributes = ['name']; |
| 17 |
|
|
| 18 |
|
public function init() |
| 19 |
|
{ |
| 20 |
|
if (!isset($this->modelName)) { |
| 21 |
|
throw new InvalidConfigException("Model name should be set in controller actions"); |
| 22 |
|
} |
| 23 |
|
if (!class_exists($this->modelName)) { |
| 24 |
|
throw new InvalidConfigException("Model class does not exists"); |
| 25 |
|
} |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
/** |
| 29 |
|
* @return array |
application/backend/actions/DeleteOne.php 1 location
|
@@ 41-49 (lines=9) @@
|
| 38 |
|
*/ |
| 39 |
|
public $redirect = ['index']; |
| 40 |
|
|
| 41 |
|
public function init() |
| 42 |
|
{ |
| 43 |
|
if (!isset($this->modelName)) { |
| 44 |
|
throw new InvalidConfigException("Model name should be set in controller actions"); |
| 45 |
|
} |
| 46 |
|
if (!class_exists($this->modelName)) { |
| 47 |
|
throw new InvalidConfigException("Model class does not exists"); |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
/** |
| 52 |
|
* @inheritdoc |
application/backend/actions/MultipleDelete.php 1 location
|
@@ 41-49 (lines=9) @@
|
| 38 |
|
*/ |
| 39 |
|
public $redirect = ['index']; |
| 40 |
|
|
| 41 |
|
public function init() |
| 42 |
|
{ |
| 43 |
|
if (!isset($this->modelName)) { |
| 44 |
|
throw new InvalidConfigException("Model name should be set in controller actions"); |
| 45 |
|
} |
| 46 |
|
if (!class_exists($this->modelName)) { |
| 47 |
|
throw new InvalidConfigException("Model class does not exists"); |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
/** |
| 52 |
|
* @inheritdoc |
application/backend/actions/JSSelectableTreeGetTree.php 1 location
|
@@ 22-30 (lines=9) @@
|
| 19 |
|
public $order = []; |
| 20 |
|
|
| 21 |
|
|
| 22 |
|
public function init() |
| 23 |
|
{ |
| 24 |
|
if (!isset($this->modelName)) { |
| 25 |
|
throw new InvalidConfigException("Model name should be set in controller actions"); |
| 26 |
|
} |
| 27 |
|
if (!class_exists($this->modelName)) { |
| 28 |
|
throw new InvalidConfigException("Model class does not exists"); |
| 29 |
|
} |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
public function run() |
| 33 |
|
{ |