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