@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @param object $compiler compiler object |
24 | 24 | * @param array $parameter array with compilation parameter |
25 | 25 | * |
26 | - * @return string compiled code |
|
26 | + * @return boolean compiled code |
|
27 | 27 | */ |
28 | 28 | public function compile($args, $compiler, $parameter) |
29 | 29 | { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @param array $args array with attributes from parser |
52 | 52 | * @param object $compiler compiler object |
53 | 53 | * |
54 | - * @return string compiled code |
|
54 | + * @return boolean compiled code |
|
55 | 55 | */ |
56 | 56 | public function compile($args, $compiler) |
57 | 57 | { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | * |
70 | 70 | * @param Smarty_Internal_Config $config config object |
71 | 71 | * |
72 | - * @return bool true if compiling succeeded, false if it failed |
|
72 | + * @return boolean|null true if compiling succeeded, false if it failed |
|
73 | 73 | */ |
74 | 74 | public function compileSource(Smarty_Internal_Config $config) |
75 | 75 | { |
@@ -27,6 +27,10 @@ discard block |
||
27 | 27 | public $smarty_token_names = array( // Text for parser error messages |
28 | 28 | ); |
29 | 29 | |
30 | + /** |
|
31 | + * @param string $data |
|
32 | + * @param Smarty_Internal_Config_File_Compiler $compiler |
|
33 | + */ |
|
30 | 34 | function __construct($data, $compiler) |
31 | 35 | { |
32 | 36 | // set instance object |
@@ -41,6 +45,9 @@ discard block |
||
41 | 45 | $this->smarty = $compiler->smarty; |
42 | 46 | } |
43 | 47 | |
48 | + /** |
|
49 | + * @param Smarty_Internal_Configfilelexer $new_instance |
|
50 | + */ |
|
44 | 51 | public static function &instance($new_instance = null) |
45 | 52 | { |
46 | 53 | static $instance = null; |
@@ -64,6 +71,9 @@ discard block |
||
64 | 71 | return $this->{'yylex' . $this->_yy_state}(); |
65 | 72 | } |
66 | 73 | |
74 | + /** |
|
75 | + * @param integer $state |
|
76 | + */ |
|
67 | 77 | public function yypushstate($state) |
68 | 78 | { |
69 | 79 | if ($this->yyTraceFILE) { |
@@ -96,6 +96,10 @@ discard block |
||
96 | 96 | private $lex; |
97 | 97 | private $internalError = false; |
98 | 98 | |
99 | + /** |
|
100 | + * @param Smarty_Internal_Configfilelexer $lex |
|
101 | + * @param Smarty_Internal_Config_File_Compiler $compiler |
|
102 | + */ |
|
99 | 103 | function __construct($lex, $compiler) |
100 | 104 | { |
101 | 105 | // set instance object |
@@ -105,6 +109,9 @@ discard block |
||
105 | 109 | $this->compiler = $compiler; |
106 | 110 | } |
107 | 111 | |
112 | + /** |
|
113 | + * @param Smarty_Internal_Configfileparser $new_instance |
|
114 | + */ |
|
108 | 115 | public static function &instance($new_instance = null) |
109 | 116 | { |
110 | 117 | static $instance = null; |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | /** |
253 | 253 | * clear the given assigned template variable. |
254 | 254 | * |
255 | - * @param string|array $tpl_var the template variable(s) to clear |
|
255 | + * @param string $tpl_var the template variable(s) to clear |
|
256 | 256 | * |
257 | 257 | * @return Smarty_Internal_Data current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining |
258 | 258 | */ |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | * load a config file, optionally load just selected sections |
286 | 286 | * |
287 | 287 | * @param string $config_file filename |
288 | - * @param mixed $sections array of section names, single section or null |
|
288 | + * @param string|null $sections array of section names, single section or null |
|
289 | 289 | * |
290 | 290 | * @return Smarty_Internal_Data current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining |
291 | 291 | */ |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | * @param string $variable the stream of the variable |
371 | 371 | * |
372 | 372 | * @throws SmartyException |
373 | - * @return mixed the value of the stream variable |
|
373 | + * @return string|null the value of the stream variable |
|
374 | 374 | */ |
375 | 375 | public function getStreamVariable($variable) |
376 | 376 | { |
@@ -553,7 +553,7 @@ discard block |
||
553 | 553 | * |
554 | 554 | * @param string $name |
555 | 555 | * |
556 | - * @return bool |
|
556 | + * @return false|null |
|
557 | 557 | */ |
558 | 558 | public function __get($name) |
559 | 559 | { |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * Ignore template |
35 | 35 | * |
36 | - * @param object $template |
|
36 | + * @param Smarty_Internal_Template $template |
|
37 | 37 | */ |
38 | 38 | public static function ignore($template) |
39 | 39 | { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | /** |
48 | 48 | * Start logging of compile time |
49 | 49 | * |
50 | - * @param object $template |
|
50 | + * @param Smarty_Internal_Template $template |
|
51 | 51 | */ |
52 | 52 | public static function start_compile($template) |
53 | 53 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * End logging of compile time |
78 | 78 | * |
79 | - * @param object $template |
|
79 | + * @param Smarty_Internal_Template $template |
|
80 | 80 | */ |
81 | 81 | public static function end_compile($template) |
82 | 82 | { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * |
21 | 21 | * @param string $filepath filepath |
22 | 22 | * |
23 | - * @return string|boolean full filepath or false |
|
23 | + * @return string|false full filepath or false |
|
24 | 24 | */ |
25 | 25 | public static function getIncludePath($filepath) |
26 | 26 | { |
@@ -560,7 +560,7 @@ |
||
560 | 560 | * |
561 | 561 | * @param int $scope pqrent or root scope |
562 | 562 | * |
563 | - * @return mixed object |
|
563 | + * @return Smarty_Internal_Template|null object |
|
564 | 564 | */ |
565 | 565 | public function getScopePointer($scope) |
566 | 566 | { |
@@ -398,8 +398,8 @@ discard block |
||
398 | 398 | * test if cache is valid |
399 | 399 | * |
400 | 400 | * @param string|object $template the resource handle of the template file or template object |
401 | - * @param mixed $cache_id cache id to be used with this template |
|
402 | - * @param mixed $compile_id compile id to be used with this template |
|
401 | + * @param string|null $cache_id cache id to be used with this template |
|
402 | + * @param string|null $compile_id compile id to be used with this template |
|
403 | 403 | * @param object $parent next higher level of Smarty variables |
404 | 404 | * |
405 | 405 | * @return boolean cache status |
@@ -538,7 +538,7 @@ discard block |
||
538 | 538 | /** |
539 | 539 | * Registers object to be used in templates |
540 | 540 | * |
541 | - * @param $object_name |
|
541 | + * @param string $object_name |
|
542 | 542 | * @param object $object_impl the referenced PHP object to register |
543 | 543 | * @param array $allowed list of allowed methods (empty = all) |
544 | 544 | * @param boolean $smarty_args smarty argument format, else traditional |