@@ -48,6 +48,9 @@ |
||
48 | 48 | $this->_label = $value; |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @return string |
|
53 | + */ |
|
51 | 54 | public function getLayout() |
52 | 55 | { |
53 | 56 | return $this->layout ? $this->layout : $this->getElementsLayout($this->parent); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
127 | - * @param $header |
|
127 | + * @param string $header |
|
128 | 128 | * |
129 | 129 | * @return string |
130 | 130 | */ |
@@ -204,6 +204,9 @@ discard block |
||
204 | 204 | $this->processModels($models); |
205 | 205 | } |
206 | 206 | |
207 | + /** |
|
208 | + * @param string $id |
|
209 | + */ |
|
207 | 210 | public function registerClip($id, $value) |
208 | 211 | { |
209 | 212 | $this->replaces['{'.$id.'}'] = $value; |
@@ -318,7 +321,7 @@ discard block |
||
318 | 321 | /** |
319 | 322 | * Замена встречающиеся переменных на значения свойств $model |
320 | 323 | * |
321 | - * @param $string |
|
324 | + * @param string $string |
|
322 | 325 | * |
323 | 326 | * @return string |
324 | 327 | */ |
@@ -342,6 +345,9 @@ discard block |
||
342 | 345 | return $string; |
343 | 346 | } |
344 | 347 | |
348 | + /** |
|
349 | + * @param string $string |
|
350 | + */ |
|
345 | 351 | private function replaceCommands($string) |
346 | 352 | { |
347 | 353 | if( preg_match(self::COMMAND_PATTERN, $string, $matches) ) |
@@ -362,7 +368,7 @@ discard block |
||
362 | 368 | |
363 | 369 | /** |
364 | 370 | * @param $value |
365 | - * @param $replace |
|
371 | + * @param string $replace |
|
366 | 372 | */ |
367 | 373 | private function processValue($value, $replace) |
368 | 374 | { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | private $attachHandlers; |
32 | 32 | |
33 | 33 | /** |
34 | - * @param null $url |
|
34 | + * @param null|string $url |
|
35 | 35 | * @param bool $attachHandlers |
36 | 36 | */ |
37 | 37 | public function __construct($url = null, $attachHandlers = true) |
@@ -57,6 +57,9 @@ discard block |
||
57 | 57 | file_put_contents($docPath.'/keywords.txt',implode(',',$keywords)); |
58 | 58 | } |
59 | 59 | |
60 | + /** |
|
61 | + * @param string $view |
|
62 | + */ |
|
60 | 63 | public function render($view,$data=null,$return=false,$layout='main') |
61 | 64 | { |
62 | 65 | $viewFile=$this->themePath."/views/{$view}.php"; |
@@ -65,6 +68,9 @@ discard block |
||
65 | 68 | return $this->renderFile($layoutFile,array('content'=>$content),$return); |
66 | 69 | } |
67 | 70 | |
71 | + /** |
|
72 | + * @param string $view |
|
73 | + */ |
|
68 | 74 | public function renderPartial($view,$data=null,$return=false) |
69 | 75 | { |
70 | 76 | $viewFile=$this->themePath."/views/{$view}.php"; |
@@ -113,6 +113,9 @@ discard block |
||
113 | 113 | } |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param ReflectionClass $class |
|
118 | + */ |
|
116 | 119 | protected function processClass($class) |
117 | 120 | { |
118 | 121 | $doc=new ClassDoc; |
@@ -232,6 +235,9 @@ discard block |
||
232 | 235 | return $this->getMethodUrl($class,$method); |
233 | 236 | } |
234 | 237 | |
238 | + /** |
|
239 | + * @param string $method |
|
240 | + */ |
|
235 | 241 | protected function getMethodUrl($class,$method) |
236 | 242 | { |
237 | 243 | if(!isset($this->classes[$class])) |
@@ -268,6 +274,9 @@ discard block |
||
268 | 274 | return $matches[0]; |
269 | 275 | } |
270 | 276 | |
277 | + /** |
|
278 | + * @param string $comment |
|
279 | + */ |
|
271 | 280 | protected function processTags($object,$comment) |
272 | 281 | { |
273 | 282 | $tags=preg_split('/^\s*@/m',$comment,-1,PREG_SPLIT_NO_EMPTY); |
@@ -580,6 +589,9 @@ discard block |
||
580 | 589 | return $files; |
581 | 590 | } |
582 | 591 | |
592 | + /** |
|
593 | + * @param string $path |
|
594 | + */ |
|
583 | 595 | protected function isValidPath($path) |
584 | 596 | { |
585 | 597 | if(is_file($path) && substr($path,-4)!=='.php') |
@@ -270,7 +270,6 @@ |
||
270 | 270 | * @param string $name the name of the plugin |
271 | 271 | * @param string $selector the CSS selector |
272 | 272 | * @param array $options the plugin options |
273 | - * @param string $defaultSelector the default CSS selector |
|
274 | 273 | * @since 0.9.8 |
275 | 274 | */ |
276 | 275 | protected function registerPlugin($name, $selector = null, $options = array()) |
@@ -75,7 +75,7 @@ |
||
75 | 75 | |
76 | 76 | /** |
77 | 77 | * Renders a checkbox list input row. |
78 | - * @param CModel $model the data model |
|
78 | + * @param BProduct $model the data model |
|
79 | 79 | * @param string $attribute the attribute |
80 | 80 | * @param array $data the list data |
81 | 81 | * @param array $htmlOptions additional HTML attributes |
@@ -196,7 +196,7 @@ |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | - * @param $name |
|
199 | + * @param string $name |
|
200 | 200 | * @return string |
201 | 201 | */ |
202 | 202 | protected function getTemplate($name) |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * @param $limit |
14 | 14 | * @param $modified |
15 | 15 | * |
16 | - * @return array |
|
16 | + * @return CackleResponseComments |
|
17 | 17 | */ |
18 | 18 | public function getRemoteItems($page, $limit, $modified) |
19 | 19 | { |