@@ -11,6 +11,9 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | public static $duration = false; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param boolean $duration |
|
| 16 | + */ |
|
| 14 | 17 | public function init($key, $duration) { |
| 15 | 18 | $ci = get_instance(); |
| 16 | 19 | |
@@ -24,6 +27,9 @@ discard block |
||
| 24 | 27 | return $data; |
| 25 | 28 | } |
| 26 | 29 | |
| 30 | + /** |
|
| 31 | + * @param string $content |
|
| 32 | + */ |
|
| 27 | 33 | public function storeCache($content) { |
| 28 | 34 | $ci = get_instance(); |
| 29 | 35 | |
@@ -164,6 +164,9 @@ |
||
| 164 | 164 | * */ |
| 165 | 165 | if (!function_exists('color')) { |
| 166 | 166 | |
| 167 | + /** |
|
| 168 | + * @param string $type |
|
| 169 | + */ |
|
| 167 | 170 | function color($type) { |
| 168 | 171 | switch ($type) { |
| 169 | 172 | case "bg": |
@@ -207,6 +207,9 @@ discard block |
||
| 207 | 207 | |
| 208 | 208 | /* Mailhide related code */ |
| 209 | 209 | |
| 210 | +/** |
|
| 211 | + * @param string $ky |
|
| 212 | + */ |
|
| 210 | 213 | function _recaptcha_aes_encrypt($val, $ky) { |
| 211 | 214 | if (!function_exists("mcrypt_encrypt")) { |
| 212 | 215 | die("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); |
@@ -217,6 +220,9 @@ discard block |
||
| 217 | 220 | return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); |
| 218 | 221 | } |
| 219 | 222 | |
| 223 | +/** |
|
| 224 | + * @param null|string $x |
|
| 225 | + */ |
|
| 220 | 226 | function _recaptcha_mailhide_urlbase64($x) { |
| 221 | 227 | return strtr(base64_encode($x), '+/', '-_'); |
| 222 | 228 | } |
@@ -504,6 +504,9 @@ |
||
| 504 | 504 | Returning value if permission found, otherwise returning NULL |
| 505 | 505 | */ |
| 506 | 506 | |
| 507 | + /** |
|
| 508 | + * @param string $key |
|
| 509 | + */ |
|
| 507 | 510 | public function get_permission_value($key, $check_parent = TRUE) { |
| 508 | 511 | // Default return value |
| 509 | 512 | $result = NULL; |
@@ -47,6 +47,9 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string $key |
|
| 52 | + */ |
|
| 50 | 53 | public function _fetch($key) { |
| 51 | 54 | |
| 52 | 55 | $key = $this->generatekey($key); |
@@ -145,7 +148,7 @@ discard block |
||
| 145 | 148 | * |
| 146 | 149 | * @param string $key - cache item key |
| 147 | 150 | * |
| 148 | - * @return bool |
|
| 151 | + * @return boolean|null |
|
| 149 | 152 | */ |
| 150 | 153 | public function delete($key) { |
| 151 | 154 | |
@@ -155,7 +158,7 @@ discard block |
||
| 155 | 158 | /** |
| 156 | 159 | * Delete Cached Function |
| 157 | 160 | * |
| 158 | - * @return bool |
|
| 161 | + * @return boolean|null |
|
| 159 | 162 | */ |
| 160 | 163 | public function delete_func($object, $func, $args = array()) { |
| 161 | 164 | |
@@ -166,7 +169,7 @@ discard block |
||
| 166 | 169 | /** |
| 167 | 170 | * Delete All Cache Items |
| 168 | 171 | * |
| 169 | - * @return bool |
|
| 172 | + * @return boolean|null |
|
| 170 | 173 | * @access public |
| 171 | 174 | */ |
| 172 | 175 | public function delete_all() { |
@@ -149,7 +149,7 @@ |
||
| 149 | 149 | * @access private |
| 150 | 150 | * @param string $original the original string to translate |
| 151 | 151 | * @param array $aParams the plural parameters |
| 152 | - * @return the string translated |
|
| 152 | + * @return false|string string translated |
|
| 153 | 153 | */ |
| 154 | 154 | private function _trans($original, $aParams = false) { |
| 155 | 155 | if (!isset($this->gettext_domain)) { |
@@ -110,6 +110,7 @@ |
||
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | 112 | * Reads given session attribute value |
| 113 | + * @param string $item |
|
| 113 | 114 | */ |
| 114 | 115 | public function userdata($item) { |
| 115 | 116 | |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | 104 | * @param string $item |
| 105 | - * @param string|integer|float $value |
|
| 105 | + * @param boolean|string $value |
|
| 106 | 106 | * @return assetManager |
| 107 | 107 | * @access public |
| 108 | 108 | * @copyright ImageCMS (c) 2013, Roman <[email protected]> |
@@ -521,8 +521,8 @@ discard block |
||
| 521 | 521 | |
| 522 | 522 | /** |
| 523 | 523 | * Checks if file exists in any of modules dirs. If exists returns its path |
| 524 | - * @param string|array $files example: ['menu/assets/css/style.css'] |
|
| 525 | - * @return string|boolean returns file path or FALSE |
|
| 524 | + * @param string[] $files example: ['menu/assets/css/style.css'] |
|
| 525 | + * @return string|false returns file path or FALSE |
|
| 526 | 526 | */ |
| 527 | 527 | private function getModuleFilePath($files, $noExt = true) { |
| 528 | 528 | if (is_string($files)) { |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | (defined('BASEPATH')) OR exit('No direct script access allowed');
|
| 4 | 4 | |
| 5 | -use import_export\classes\Logger as LOG; |
|
| 5 | +use import_export\classes\Logger as LOG; |
|
| 6 | 6 | use import_export\classes\BaseImport as Imports; |
| 7 | 7 | |
| 8 | 8 | /** |