@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | * Get output mode |
361 | 361 | * @see setOutputMode() |
362 | 362 | * |
363 | - * @return output mode constant |
|
363 | + * @return integer mode constant |
|
364 | 364 | */ |
365 | 365 | public function getOutputMode() |
366 | 366 | { |
@@ -389,9 +389,8 @@ discard block |
||
389 | 389 | /** |
390 | 390 | * Get input and ouput encoding. |
391 | 391 | * |
392 | - * @param string $enc example: 'UTF-8' |
|
393 | 392 | * |
394 | - * @return $this |
|
393 | + * @return string |
|
395 | 394 | */ |
396 | 395 | public function getEncoding() |
397 | 396 | { |
@@ -743,6 +742,7 @@ discard block |
||
743 | 742 | * |
744 | 743 | * @param PHPTAL $local_tpl is PHPTAL instance of the file in which macro is defined |
745 | 744 | * (it will be different from $this if it's external macro call) |
745 | + * @param string $path |
|
746 | 746 | * @access private |
747 | 747 | */ |
748 | 748 | final public function _executeMacroOfTemplate($path, PHPTAL $local_tpl) |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | /** |
65 | 65 | * save current execution context |
66 | 66 | * |
67 | - * @return Context (new) |
|
67 | + * @return PHPTAL_Context (new) |
|
68 | 68 | */ |
69 | 69 | public function pushContext() |
70 | 70 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * get previously saved execution context |
78 | 78 | * |
79 | - * @return Context (old) |
|
79 | + * @return PHPTAL_Context (old) |
|
80 | 80 | */ |
81 | 81 | public function popContext() |
82 | 82 | { |
@@ -263,6 +263,7 @@ discard block |
||
263 | 263 | /** |
264 | 264 | * Context setter. |
265 | 265 | * |
266 | + * @param string $varname |
|
266 | 267 | * @return void |
267 | 268 | */ |
268 | 269 | public function __set($varname, $value) |
@@ -312,6 +313,7 @@ discard block |
||
312 | 313 | * helper method for PHPTAL_Context::path() |
313 | 314 | * |
314 | 315 | * @access private |
316 | + * @param string $path |
|
315 | 317 | */ |
316 | 318 | private static function pathError($base, $path, $current, $basename) |
317 | 319 | { |
@@ -82,7 +82,7 @@ |
||
82 | 82 | /** |
83 | 83 | * Returns true if this attribute is ns declaration (xmlns="...") |
84 | 84 | * |
85 | - * @return bool |
|
85 | + * @return integer |
|
86 | 86 | */ |
87 | 87 | function isNamespaceDeclaration() |
88 | 88 | { |
@@ -52,7 +52,6 @@ |
||
52 | 52 | * true if it's empty in XHTML (e.g. <img/>) |
53 | 53 | * it will assume elements with no namespace may be XHTML too. |
54 | 54 | * |
55 | - * @param string $tagName local name of the tag |
|
56 | 55 | * |
57 | 56 | * @return bool |
58 | 57 | */ |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * @param string $qname qualified name of the element, e.g. "tal:block" |
41 | 41 | * @param string $namespace_uri namespace of this element |
42 | 42 | * @param array $attribute_nodes array of PHPTAL_Dom_Attr elements |
43 | - * @param object $xmlns object that represents namespaces/prefixes known in element's context |
|
43 | + * @param PHPTAL_Dom_XmlnsState $xmlns object that represents namespaces/prefixes known in element's context |
|
44 | 44 | */ |
45 | 45 | public function __construct($qname, $namespace_uri, array $attribute_nodes, PHPTAL_Dom_XmlnsState $xmlns) |
46 | 46 | { |
@@ -229,6 +229,10 @@ discard block |
||
229 | 229 | return null; |
230 | 230 | } |
231 | 231 | |
232 | + /** |
|
233 | + * @param string $ns_uri |
|
234 | + * @param string $localname |
|
235 | + */ |
|
232 | 236 | public function removeAttributeNS($ns_uri, $localname) |
233 | 237 | { |
234 | 238 | foreach ($this->attribute_nodes as $k => $attr) { |
@@ -239,6 +243,9 @@ discard block |
||
239 | 243 | } |
240 | 244 | } |
241 | 245 | |
246 | + /** |
|
247 | + * @return PHPTAL_Php_CodeWriter |
|
248 | + */ |
|
242 | 249 | public function getAttributeNode($qname) |
243 | 250 | { |
244 | 251 | foreach($this->attribute_nodes as $attr) if ($attr->getQualifiedName() === $qname) return $attr; |
@@ -80,6 +80,10 @@ |
||
80 | 80 | ); |
81 | 81 | |
82 | 82 | private $input_encoding; |
83 | + |
|
84 | + /** |
|
85 | + * @param string $input_encoding |
|
86 | + */ |
|
83 | 87 | public function __construct($input_encoding) |
84 | 88 | { |
85 | 89 | $this->input_encoding = $input_encoding; |
@@ -27,6 +27,7 @@ |
||
27 | 27 | * Doesn't change exception handler if non-default one is set. |
28 | 28 | * |
29 | 29 | * @param Exception e exception to re-throw and display |
30 | + * @param string $encoding |
|
30 | 31 | * |
31 | 32 | * @return void |
32 | 33 | * @throws Exception |
@@ -21,6 +21,9 @@ |
||
21 | 21 | */ |
22 | 22 | interface PHPTAL_Keywords extends Countable |
23 | 23 | { |
24 | + /** |
|
25 | + * @return string |
|
26 | + */ |
|
24 | 27 | public function __toString(); |
25 | 28 | } |
26 | 29 | ?> |
@@ -71,8 +71,8 @@ |
||
71 | 71 | private $_namespace; |
72 | 72 | |
73 | 73 | /** |
74 | - * @param string $name The attribute name |
|
75 | 74 | * @param int $priority Attribute execution priority |
75 | + * @param string $local_name |
|
76 | 76 | */ |
77 | 77 | public function __construct($local_name, $priority) |
78 | 78 | { |