@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @param integer $inline Nesting level where you switch to inline YAML |
105 | 105 | * @param integer $indent Number of spaces to indent for nested nodes |
106 | 106 | * |
107 | - * @return integer|boolean number of bytes written, or false on error |
|
107 | + * @return null|false number of bytes written, or false on error |
|
108 | 108 | */ |
109 | 109 | public static function save($var, $yamlFile, $inline = 4, $indent = 4) |
110 | 110 | { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * @param integer $inline Nesting level where you switch to inline YAML |
131 | 131 | * @param integer $indent Number of spaces to indent for nested nodes |
132 | 132 | * |
133 | - * @return string|boolean YAML string or false on error |
|
133 | + * @return string|false YAML string or false on error |
|
134 | 134 | */ |
135 | 135 | public static function dumpWrapped($var, $inline = 4, $indent = 4) |
136 | 136 | { |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * @param integer $inline Nesting level where you switch to inline YAML |
208 | 208 | * @param integer $indent Number of spaces to indent for nested nodes |
209 | 209 | * |
210 | - * @return integer|boolean number of bytes written, or false on error |
|
210 | + * @return null|false number of bytes written, or false on error |
|
211 | 211 | */ |
212 | 212 | public static function saveWrapped($var, $yamlFile, $inline = 4, $indent = 4) |
213 | 213 | { |
@@ -321,7 +321,7 @@ |
||
321 | 321 | /** |
322 | 322 | * renderValidationJS |
323 | 323 | * |
324 | - * @return bool|string |
|
324 | + * @return string|false |
|
325 | 325 | */ |
326 | 326 | public function renderValidationJS() |
327 | 327 | { |
@@ -26,7 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * __construct |
28 | 28 | * |
29 | - * @param string|array $caption Caption or array of all attributes |
|
29 | + * @param string $caption Caption or array of all attributes |
|
30 | 30 | * @param string $name Unique identifier for this tray |
31 | 31 | */ |
32 | 32 | public function __construct($caption, $name = null) |
@@ -72,7 +72,7 @@ |
||
72 | 72 | /** |
73 | 73 | * Add attributes to the render suppression list |
74 | 74 | * |
75 | - * @param string|string[] $names attributes to suppress |
|
75 | + * @param string[] $names attributes to suppress |
|
76 | 76 | * |
77 | 77 | * @return void |
78 | 78 | */ |
@@ -31,6 +31,9 @@ |
||
31 | 31 | var $languageFolder = null; |
32 | 32 | var $logs = array(); |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $dirname |
|
36 | + */ |
|
34 | 37 | function xoopsUpgrade($dirname = null) |
35 | 38 | { |
36 | 39 | if ($dirname) { |
@@ -48,6 +48,11 @@ |
||
48 | 48 | return $dirlist; |
49 | 49 | } |
50 | 50 | |
51 | +/** |
|
52 | + * @param Xoops\Core\Database\Connection|null $db |
|
53 | + * @param string $table |
|
54 | + * @param string $field |
|
55 | + */ |
|
51 | 56 | function getDbValue($db, $table, $field, $condition = '') |
52 | 57 | { |
53 | 58 | $xoops = Xoops::getInstance(); |
@@ -26,6 +26,9 @@ |
||
26 | 26 | return false; |
27 | 27 | } |
28 | 28 | |
29 | + /** |
|
30 | + * @param string $sql |
|
31 | + */ |
|
29 | 32 | function query($sql) |
30 | 33 | { |
31 | 34 | //echo $sql . "<br />"; |
@@ -212,6 +212,9 @@ discard block |
||
212 | 212 | return $this->update_configs('db'); |
213 | 213 | } |
214 | 214 | |
215 | + /** |
|
216 | + * @param string $task |
|
217 | + */ |
|
215 | 218 | function update_configs($task) |
216 | 219 | { |
217 | 220 | if (!$vars = $this->set_configs($task)) { |
@@ -227,6 +230,9 @@ discard block |
||
227 | 230 | return $this->write_mainfile($vars); |
228 | 231 | } |
229 | 232 | |
233 | + /** |
|
234 | + * @param string $charset |
|
235 | + */ |
|
230 | 236 | function convert_db($charset, $collation) |
231 | 237 | { |
232 | 238 | $xoops = Xoops::getInstance(); |
@@ -200,8 +200,7 @@ |
||
200 | 200 | * Write-enable the specified file/folder |
201 | 201 | * @param string $path |
202 | 202 | * @param string $group |
203 | - * @param bool $recurse |
|
204 | - * @return false on failure, method (u-ser,g-roup,w-orld) on success |
|
203 | + * @return false|string on failure, method (u-ser,g-roup,w-orld) on success |
|
205 | 204 | */ |
206 | 205 | function makeWritable( $path, $group = false, $create = true ) |
207 | 206 | { |