@@ -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 | { |
@@ -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 |
@@ -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 | */ |