@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * @param string $type filter type |
| 23 | 23 | * @param string $name filter name |
| 24 | 24 | * |
| 25 | - * @return bool |
|
| 25 | + * @return Smarty_Internal_TemplateBase |
|
| 26 | 26 | */ |
| 27 | 27 | public function unloadFilter(Smarty_Internal_TemplateBase $obj, $type, $name) |
| 28 | 28 | { |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | * @param string $file |
| 116 | 116 | * @param \Smarty $smarty |
| 117 | 117 | * |
| 118 | - * @return bool|string full filepath or false |
|
| 118 | + * @return string|false full filepath or false |
|
| 119 | 119 | * |
| 120 | 120 | */ |
| 121 | 121 | public function getIncludePath($dirs, $file, Smarty $smarty) |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | * |
| 77 | 77 | * @param \Smarty_Template_Cached $cached |
| 78 | 78 | * @param \Smarty_Internal_Template $_template |
| 79 | - * @param $no_output_filter |
|
| 79 | + * @param boolean $no_output_filter |
|
| 80 | 80 | * |
| 81 | 81 | * @throws \Exception |
| 82 | 82 | */ |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | * @param mixed $_content template source |
| 80 | 80 | * @param bool $isTemplateSource |
| 81 | 81 | * |
| 82 | - * @return bool true if compiling succeeded, false if it failed |
|
| 82 | + * @return string true if compiling succeeded, false if it failed |
|
| 83 | 83 | * @throws \SmartyCompilerException |
| 84 | 84 | */ |
| 85 | 85 | protected function doCompile($_content, $isTemplateSource = false) |
@@ -120,9 +120,9 @@ |
||
| 120 | 120 | * @api Smarty::isCached() |
| 121 | 121 | * @link http://www.smarty.net/docs/en/api.is.cached.tpl |
| 122 | 122 | * |
| 123 | - * @param null|string|\Smarty_Internal_Template $template the resource handle of the template file or template object |
|
| 124 | - * @param mixed $cache_id cache id to be used with this template |
|
| 125 | - * @param mixed $compile_id compile id to be used with this template |
|
| 123 | + * @param string $template the resource handle of the template file or template object |
|
| 124 | + * @param string|null $cache_id cache id to be used with this template |
|
| 125 | + * @param string|null $compile_id compile id to be used with this template |
|
| 126 | 126 | * @param object $parent next higher level of Smarty variables |
| 127 | 127 | * |
| 128 | 128 | * @return boolean cache status |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | /** |
| 293 | 293 | * method to compile a Smarty template |
| 294 | 294 | * |
| 295 | - * @param mixed $_content template source |
|
| 295 | + * @param string $_content template source |
|
| 296 | 296 | * @param bool $isTemplateSource |
| 297 | 297 | * |
| 298 | 298 | * @return bool true if compiling succeeded, false if it failed |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | * @param bool $nocache true is shall be compiled in nocache mode |
| 318 | 318 | * @param null|Smarty_Internal_TemplateCompilerBase $parent_compiler |
| 319 | 319 | * |
| 320 | - * @return bool true if compiling succeeded, false if it failed |
|
| 320 | + * @return string true if compiling succeeded, false if it failed |
|
| 321 | 321 | * @throws \Exception |
| 322 | 322 | */ |
| 323 | 323 | public function compileTemplate(Smarty_Internal_Template $template, $nocache = null, |
@@ -844,7 +844,7 @@ discard block |
||
| 844 | 844 | * @param string $tag tag name |
| 845 | 845 | * @param array $args list of tag attributes |
| 846 | 846 | * @param mixed $param1 optional parameter |
| 847 | - * @param mixed $param2 optional parameter |
|
| 847 | + * @param string $param2 optional parameter |
|
| 848 | 848 | * @param mixed $param3 optional parameter |
| 849 | 849 | * |
| 850 | 850 | * @return string compiled code |
@@ -1060,7 +1060,7 @@ discard block |
||
| 1060 | 1060 | * |
| 1061 | 1061 | * @param string $input |
| 1062 | 1062 | * |
| 1063 | - * @return bool|string |
|
| 1063 | + * @return string|false |
|
| 1064 | 1064 | */ |
| 1065 | 1065 | public function getId($input) |
| 1066 | 1066 | { |
@@ -1075,7 +1075,7 @@ discard block |
||
| 1075 | 1075 | * |
| 1076 | 1076 | * @param string $input |
| 1077 | 1077 | * |
| 1078 | - * @return bool|string |
|
| 1078 | + * @return string|false |
|
| 1079 | 1079 | */ |
| 1080 | 1080 | public function getVariableName($input) |
| 1081 | 1081 | { |
@@ -242,6 +242,9 @@ discard block |
||
| 242 | 242 | return $this->{'yylex' . $this->_yy_state}(); |
| 243 | 243 | } |
| 244 | 244 | |
| 245 | + /** |
|
| 246 | + * @param integer $state |
|
| 247 | + */ |
|
| 245 | 248 | public function yypushstate($state) |
| 246 | 249 | { |
| 247 | 250 | if ($this->yyTraceFILE) { |
@@ -273,6 +276,9 @@ discard block |
||
| 273 | 276 | } |
| 274 | 277 | } |
| 275 | 278 | |
| 279 | + /** |
|
| 280 | + * @param integer $state |
|
| 281 | + */ |
|
| 276 | 282 | public function yybegin($state) |
| 277 | 283 | { |
| 278 | 284 | $this->_yy_state = $state; |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | * @param string $resource_name template_resource or config_resource to parse |
| 201 | 201 | * @param string $default_resource the default resource_type defined in $smarty |
| 202 | 202 | * |
| 203 | - * @return array with parsed resource name and type |
|
| 203 | + * @return string[] with parsed resource name and type |
|
| 204 | 204 | */ |
| 205 | 205 | public static function parseResourceName($resource_name, $default_resource) |
| 206 | 206 | { |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | /** |
| 220 | 220 | * modify template_resource according to resource handlers specifications |
| 221 | 221 | * |
| 222 | - * @param \Smarty_Internal_Template|\Smarty $obj Smarty instance |
|
| 222 | + * @param Smarty $obj Smarty instance |
|
| 223 | 223 | * @param string $template_resource template_resource to extract resource handler and name of |
| 224 | 224 | * |
| 225 | 225 | * @return string unique resource name |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | * Check if PHP function is trusted. |
| 265 | 265 | * |
| 266 | 266 | * @param string $function_name |
| 267 | - * @param object $compiler compiler object |
|
| 267 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 268 | 268 | * |
| 269 | 269 | * @return boolean true if function is trusted |
| 270 | 270 | * @throws SmartyCompilerException if php function is not trusted |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | * |
| 310 | 310 | * @param string $class_name |
| 311 | 311 | * @param string $params |
| 312 | - * @param object $compiler compiler object |
|
| 312 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 313 | 313 | * |
| 314 | 314 | * @return boolean true if class method is trusted |
| 315 | 315 | * @throws SmartyCompilerException if static class method is not trusted |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | * Check if PHP modifier is trusted. |
| 348 | 348 | * |
| 349 | 349 | * @param string $modifier_name |
| 350 | - * @param object $compiler compiler object |
|
| 350 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 351 | 351 | * |
| 352 | 352 | * @return boolean true if modifier is trusted |
| 353 | 353 | * @throws SmartyCompilerException if modifier is not trusted |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | * Check if tag is trusted. |
| 370 | 370 | * |
| 371 | 371 | * @param string $tag_name |
| 372 | - * @param object $compiler compiler object |
|
| 372 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 373 | 373 | * |
| 374 | 374 | * @return boolean true if tag is trusted |
| 375 | 375 | * @throws SmartyCompilerException if modifier is not trusted |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | * Check if special $smarty variable is trusted. |
| 405 | 405 | * |
| 406 | 406 | * @param string $var_name |
| 407 | - * @param object $compiler compiler object |
|
| 407 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 408 | 408 | * |
| 409 | 409 | * @return boolean true if tag is trusted |
| 410 | 410 | * @throws SmartyCompilerException if modifier is not trusted |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | * Check if modifier plugin is trusted. |
| 425 | 425 | * |
| 426 | 426 | * @param string $modifier_name |
| 427 | - * @param object $compiler compiler object |
|
| 427 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 428 | 428 | * |
| 429 | 429 | * @return boolean true if tag is trusted |
| 430 | 430 | * @throws SmartyCompilerException if modifier is not trusted |
@@ -457,7 +457,7 @@ discard block |
||
| 457 | 457 | * Check if constants are enabled or trusted |
| 458 | 458 | * |
| 459 | 459 | * @param string $const constant name |
| 460 | - * @param object $compiler compiler object |
|
| 460 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 461 | 461 | * |
| 462 | 462 | * @return bool |
| 463 | 463 | */ |
@@ -625,7 +625,7 @@ discard block |
||
| 625 | 625 | /** |
| 626 | 626 | * Start template processing |
| 627 | 627 | * |
| 628 | - * @param $template |
|
| 628 | + * @param Smarty_Internal_Template $template |
|
| 629 | 629 | * |
| 630 | 630 | * @throws SmartyException |
| 631 | 631 | */ |