@@ -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 | { |
@@ -184,6 +184,12 @@ |
||
184 | 184 | return $this->db->fetchArray($ret); |
185 | 185 | } |
186 | 186 | |
187 | + /** |
|
188 | + * @param string $table |
|
189 | + * @param string $query |
|
190 | + * |
|
191 | + * @return string |
|
192 | + */ |
|
187 | 193 | function insert($table, $query) |
188 | 194 | { |
189 | 195 | $this->db->connect(); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
49 | - * @return string |
|
49 | + * @return Xoops\Module\Helper\HelperAbstract |
|
50 | 50 | */ |
51 | 51 | public static function getInstance() |
52 | 52 | { |
@@ -751,6 +751,9 @@ |
||
751 | 751 | } |
752 | 752 | } |
753 | 753 | |
754 | +/** |
|
755 | + * @param integer $mime_value |
|
756 | + */ |
|
754 | 757 | function _changeMimeValue($mime_value) |
755 | 758 | { |
756 | 759 | if ($mime_value == 1) { |
@@ -70,7 +70,7 @@ |
||
70 | 70 | /** |
71 | 71 | * get the module object |
72 | 72 | * |
73 | - * @return XoopsModule |
|
73 | + * @return \XoopsModule |
|
74 | 74 | */ |
75 | 75 | public function getModule() |
76 | 76 | { |
@@ -163,7 +163,7 @@ |
||
163 | 163 | /** |
164 | 164 | * Delete all permissions for an item and a specific name or array of names |
165 | 165 | * |
166 | - * @param string|string[] $gperm_name name(s) of the permission to delete |
|
166 | + * @param string $gperm_name name(s) of the permission to delete |
|
167 | 167 | * @param int $gperm_itemid id of the object to check |
168 | 168 | * |
169 | 169 | * @return bool true if no errors |
@@ -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 | { |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | /** |
178 | 178 | * filter to UTF-8, converts invalid $text as CP1252 and forces NFC normalization |
179 | 179 | * |
180 | - * @param mixed $text |
|
180 | + * @param string $text |
|
181 | 181 | * |
182 | 182 | * @return string |
183 | 183 | */ |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | /** |
204 | 204 | * XoopsLocalAbstract::trim() |
205 | 205 | * |
206 | - * @param mixed $text |
|
206 | + * @param string $text |
|
207 | 207 | * |
208 | 208 | * @return string |
209 | 209 | */ |