@@ -31,7 +31,6 @@ |
||
31 | 31 | /** |
32 | 32 | * Recursively builds parents path to passed resource |
33 | 33 | * |
34 | - * @param ACL_Resource|bool $page |
|
35 | 34 | * @param array $return |
36 | 35 | * @return array |
37 | 36 | */ |
@@ -37,6 +37,9 @@ |
||
37 | 37 | return $this; |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param boolean $value |
|
42 | + */ |
|
40 | 43 | public function authenticated($value = null) |
41 | 44 | { |
42 | 45 | if (!is_null($value)) { |
@@ -81,6 +81,9 @@ discard block |
||
81 | 81 | return false; |
82 | 82 | } |
83 | 83 | |
84 | + /** |
|
85 | + * @return string |
|
86 | + */ |
|
84 | 87 | protected function getClassLocation($class, $retry = false) |
85 | 88 | { |
86 | 89 | if (in_array($class, array_keys($this->getMap()))) { |
@@ -133,6 +136,9 @@ discard block |
||
133 | 136 | return $this->_map; |
134 | 137 | } |
135 | 138 | |
139 | + /** |
|
140 | + * @param string $filePath |
|
141 | + */ |
|
136 | 142 | protected function readCacheFile($filePath) |
137 | 143 | { |
138 | 144 | if (file_exists($filePath)) { |
@@ -153,11 +159,17 @@ discard block |
||
153 | 159 | return str_replace(DS, '-', $dir).'.php'; |
154 | 160 | } |
155 | 161 | |
162 | + /** |
|
163 | + * @param boolean $retry |
|
164 | + */ |
|
156 | 165 | public function setRetry($retry) |
157 | 166 | { |
158 | 167 | $this->_retry = $retry; |
159 | 168 | } |
160 | 169 | |
170 | + /** |
|
171 | + * @param boolean $value |
|
172 | + */ |
|
161 | 173 | public function isFatal($value = null) |
162 | 174 | { |
163 | 175 | if (is_bool($value)) { |
@@ -170,7 +182,7 @@ discard block |
||
170 | 182 | /** |
171 | 183 | * Singleton |
172 | 184 | * |
173 | - * @return Nip_AutoLoader |
|
185 | + * @return AutoLoader |
|
174 | 186 | */ |
175 | 187 | static public function instance() |
176 | 188 | { |
@@ -194,6 +194,9 @@ |
||
194 | 194 | return $i18n; |
195 | 195 | } |
196 | 196 | |
197 | + /** |
|
198 | + * @param \Nip_I18n $translation |
|
199 | + */ |
|
197 | 200 | public function initLanguages($translation) |
198 | 201 | { |
199 | 202 | return $translation; |
@@ -28,6 +28,9 @@ discard block |
||
28 | 28 | return $this->_plugins; |
29 | 29 | } |
30 | 30 | |
31 | + /** |
|
32 | + * @param string $key |
|
33 | + */ |
|
31 | 34 | public function getPlugin($key) |
32 | 35 | { |
33 | 36 | return $this->_plugins[$key]; |
@@ -68,6 +71,9 @@ discard block |
||
68 | 71 | $_this->setEnabled(false); |
69 | 72 | } |
70 | 73 | |
74 | + /** |
|
75 | + * @param boolean $enabled |
|
76 | + */ |
|
71 | 77 | public function setEnabled($enabled) |
72 | 78 | { |
73 | 79 | $this->_enabled = $enabled; |
@@ -88,7 +94,7 @@ discard block |
||
88 | 94 | /** |
89 | 95 | * Singleton |
90 | 96 | * |
91 | - * @return Console |
|
97 | + * @return Nip_Console |
|
92 | 98 | */ |
93 | 99 | public static function instance() |
94 | 100 | { |
@@ -13,7 +13,7 @@ |
||
13 | 13 | } |
14 | 14 | |
15 | 15 | /** |
16 | - * @return Logger_Adapter |
|
16 | + * @return Nip\Logger\Adapter\AdapterAbstract |
|
17 | 17 | */ |
18 | 18 | public function getLogger() |
19 | 19 | { |
@@ -159,6 +159,9 @@ |
||
159 | 159 | return true; |
160 | 160 | } |
161 | 161 | |
162 | + /** |
|
163 | + * @param string[] $action |
|
164 | + */ |
|
162 | 165 | protected function validAction($action) |
163 | 166 | { |
164 | 167 | return in_array($action, get_class_methods(get_class($this))); |
@@ -32,6 +32,9 @@ |
||
32 | 32 | return parent::cachePath() . '/db-metadata/'; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param Nip_Db_Metadata $metadata |
|
37 | + */ |
|
35 | 38 | public function setMetadata($metadata) { |
36 | 39 | $this->_metadata = $metadata; |
37 | 40 | return $this; |
@@ -16,6 +16,10 @@ |
||
16 | 16 | class Nip_DB_Profiler_Query extends Nip_Profile { |
17 | 17 | public $columns = array('time', 'type', 'memory', 'query', 'affectedRows', 'info'); |
18 | 18 | |
19 | + /** |
|
20 | + * @param boolean $query |
|
21 | + * @param string $queryType |
|
22 | + */ |
|
19 | 23 | public function __construct($query, $queryType) { |
20 | 24 | $this->query = $query; |
21 | 25 |