1 | <?php |
||
21 | class Config extends \hiqdev\yii2\collection\Object |
||
22 | { |
||
23 | protected $_included = []; |
||
24 | |||
25 | public function hasGoal($id) |
||
26 | { |
||
27 | return $this->hasItem($id); |
||
28 | } |
||
29 | |||
30 | 3 | public function getItemConfig($id = null, array $config = []) |
|
39 | |||
40 | public function createItem($id, $config = []) |
||
44 | |||
45 | public function getItem($id) |
||
54 | |||
55 | /** |
||
56 | * Include config file, unique only. |
||
57 | * @param string|array $path |
||
58 | * @return bool true if the path was unique and loaded |
||
59 | */ |
||
60 | 2 | public function includeConfig($path, $force = false) |
|
61 | { |
||
62 | $file = File::create($path); |
||
63 | $path = $file->getPath(); |
||
64 | 2 | if (!isset($this->_included[$path]) || $force) { |
|
65 | 2 | $this->_included[$path] = $path; |
|
66 | $this->mergeItems($file->load()); |
||
67 | 2 | return true; |
|
68 | } |
||
69 | |||
70 | return false; |
||
71 | 2 | } |
|
72 | |||
73 | public function getGoal($id) |
||
77 | |||
78 | public function getVcs() |
||
83 | } |
||
84 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.