src/actions/AdjacencyList/FullTreeDataAction.php 1 location
|
@@ 68-76 (lines=9) @@
|
| 65 |
|
*/ |
| 66 |
|
public $cacheLifeTime = 86400; |
| 67 |
|
|
| 68 |
|
public function init() |
| 69 |
|
{ |
| 70 |
|
if (!isset($this->className)) { |
| 71 |
|
throw new InvalidConfigException("Model name should be set in controller actions"); |
| 72 |
|
} |
| 73 |
|
if (!class_exists($this->className)) { |
| 74 |
|
throw new InvalidConfigException("Model class does not exists"); |
| 75 |
|
} |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
public function run() |
| 79 |
|
{ |
src/actions/AdjacencyList/PartialTreeDataAction.php 1 location
|
@@ 68-76 (lines=9) @@
|
| 65 |
|
*/ |
| 66 |
|
public $cacheLifeTime = 86400; |
| 67 |
|
|
| 68 |
|
public function init() |
| 69 |
|
{ |
| 70 |
|
if ($this->className === null) { |
| 71 |
|
throw new InvalidConfigException('Model name should be set in controller actions'); |
| 72 |
|
} |
| 73 |
|
if (!class_exists($this->className)) { |
| 74 |
|
throw new InvalidConfigException('Model class does not exists'); |
| 75 |
|
} |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
public function run() |
| 79 |
|
{ |