@@ -499,7 +499,7 @@ discard block |
||
| 499 | 499 | * to be used as main alias in the secondary query |
| 500 | 500 | * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' |
| 501 | 501 | * |
| 502 | - * @return \SCategoryQuery A secondary query class using the current class as primary query |
|
| 502 | + * @return ModelCriteria A secondary query class using the current class as primary query |
|
| 503 | 503 | */ |
| 504 | 504 | public function useSCategoryQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) |
| 505 | 505 | { |
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | * to be used as main alias in the secondary query |
| 573 | 573 | * @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join' |
| 574 | 574 | * |
| 575 | - * @return \SProductsQuery A secondary query class using the current class as primary query |
|
| 575 | + * @return ModelCriteria A secondary query class using the current class as primary query |
|
| 576 | 576 | */ |
| 577 | 577 | public function useSProductsQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN) |
| 578 | 578 | { |
@@ -7,6 +7,9 @@ |
||
| 7 | 7 | { |
| 8 | 8 | const PAGE_TPL_DEFAULT = 'page_full'; |
| 9 | 9 | |
| 10 | + /** |
|
| 11 | + * @param integer $id |
|
| 12 | + */ |
|
| 10 | 13 | public function index($id) { |
| 11 | 14 | |
| 12 | 15 | $page = $this->model->getPage($id); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * @author Kaero |
| 75 | 75 | * @copyright ImageCMS (c) 2012, Kaero <[email protected]> |
| 76 | 76 | * @param array $EmptyFields |
| 77 | - * @return bool |
|
| 77 | + * @return false|null |
|
| 78 | 78 | */ |
| 79 | 79 | public function make($EmptyFields) { |
| 80 | 80 | if (ImportBootstrap::hasErrors()) { |
@@ -601,7 +601,7 @@ discard block |
||
| 601 | 601 | * Update Shop Products Categories |
| 602 | 602 | * @param array $arg Processed arguments list |
| 603 | 603 | * @param integer $productId Product Id for alias |
| 604 | - * @param $EmptyFields |
|
| 604 | + * @param boolean $EmptyFields |
|
| 605 | 605 | * @return bool|null |
| 606 | 606 | * @author Kaero |
| 607 | 607 | * @copyright ImageCMS (c) 2012, Kaero <[email protected]> |
@@ -788,7 +788,7 @@ discard block |
||
| 788 | 788 | * Save the picture on coal in the original folder or the origin/additional |
| 789 | 789 | * @param string $param url |
| 790 | 790 | * @param bool|string $type (origin|additional) |
| 791 | - * @return bool|string Name of file OR False |
|
| 791 | + * @return false|string Name of file OR False |
|
| 792 | 792 | * @access private |
| 793 | 793 | */ |
| 794 | 794 | private function saveImgByUrl($param, $type = false) { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * Save settings |
| 28 | 28 | * @param array $settings |
| 29 | - * @return boolean |
|
| 29 | + * @return boolean|null |
|
| 30 | 30 | */ |
| 31 | 31 | public function setSettings($settings) { |
| 32 | 32 | |
@@ -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 | } |
@@ -433,7 +433,7 @@ |
||
| 433 | 433 | |
| 434 | 434 | /** |
| 435 | 435 | * @param string $msg |
| 436 | - * @return bool |
|
| 436 | + * @return false|null |
|
| 437 | 437 | */ |
| 438 | 438 | private function log_cache_error($msg) { |
| 439 | 439 | $log_path = APPPATH . 'logs/'; |
@@ -49,6 +49,9 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | + /** |
|
| 53 | + * @param string $key |
|
| 54 | + */ |
|
| 52 | 55 | public function _fetch($key) { |
| 53 | 56 | |
| 54 | 57 | $key = $this->generatekey($key); |
@@ -147,7 +150,7 @@ discard block |
||
| 147 | 150 | * |
| 148 | 151 | * @param string $key - cache item key |
| 149 | 152 | * |
| 150 | - * @return bool |
|
| 153 | + * @return boolean|null |
|
| 151 | 154 | */ |
| 152 | 155 | public function delete($key) { |
| 153 | 156 | |
@@ -157,7 +160,7 @@ discard block |
||
| 157 | 160 | /** |
| 158 | 161 | * Delete Cached Function |
| 159 | 162 | * |
| 160 | - * @return bool |
|
| 163 | + * @return boolean|null |
|
| 161 | 164 | */ |
| 162 | 165 | public function delete_func($object, $func, $args = []) { |
| 163 | 166 | |
@@ -168,7 +171,7 @@ discard block |
||
| 168 | 171 | /** |
| 169 | 172 | * Delete All Cache Items |
| 170 | 173 | * |
| 171 | - * @return bool |
|
| 174 | + * @return boolean|null |
|
| 172 | 175 | * @access public |
| 173 | 176 | */ |
| 174 | 177 | public function delete_all() { |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | /** |
| 156 | 156 | * zipping files |
| 157 | 157 | * @param array $files |
| 158 | - * @return bool |
|
| 158 | + * @return boolean|null |
|
| 159 | 159 | * @throws Exception |
| 160 | 160 | */ |
| 161 | 161 | public function add_to_ZIP($files = []) { |