@@ -505,6 +505,9 @@ discard block |
||
505 | 505 | Returning value if permission found, otherwise returning NULL |
506 | 506 | */ |
507 | 507 | |
508 | + /** |
|
509 | + * @param string $key |
|
510 | + */ |
|
508 | 511 | public function get_permission_value($key, $check_parent = TRUE) { |
509 | 512 | // Default return value |
510 | 513 | $result = NULL; |
@@ -627,6 +630,9 @@ discard block |
||
627 | 630 | |
628 | 631 | // Get useremail string |
629 | 632 | |
633 | + /** |
|
634 | + * @return string |
|
635 | + */ |
|
630 | 636 | public function get_user_email() { |
631 | 637 | $user = $this->ci->db |
632 | 638 | ->where('id', $this->get_user_id()) |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | } |
300 | 300 | |
301 | 301 | /** |
302 | - * @return bool |
|
302 | + * @return false|null |
|
303 | 303 | */ |
304 | 304 | public function create_tpl() { |
305 | 305 | $file = trim($this->input->post('filename')); |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | * Show edit category window |
455 | 455 | * @access public |
456 | 456 | * @param int $id |
457 | - * @return bool |
|
457 | + * @return null|false |
|
458 | 458 | */ |
459 | 459 | public function edit($id) { |
460 | 460 | $cat = $this->cms_admin->get_category($id); |
@@ -654,7 +654,7 @@ discard block |
||
654 | 654 | /** |
655 | 655 | * @param int $id |
656 | 656 | * @param string $lang |
657 | - * @return bool |
|
657 | + * @return null|false |
|
658 | 658 | */ |
659 | 659 | public function translate($id, $lang) { |
660 | 660 | $cat = $this->cms_admin->get_category($id); |
@@ -290,7 +290,7 @@ |
||
290 | 290 | } |
291 | 291 | |
292 | 292 | /** |
293 | - * @return bool |
|
293 | + * @return false|null |
|
294 | 294 | */ |
295 | 295 | public function Querys() { |
296 | 296 |
@@ -115,6 +115,9 @@ |
||
115 | 115 | } |
116 | 116 | } |
117 | 117 | |
118 | + /** |
|
119 | + * @param string $locale |
|
120 | + */ |
|
118 | 121 | public function getTemplateVariables($template_id, $locale) { |
119 | 122 | $query = $this->db->where('id', $template_id)->where('locale', $locale)->get('mod_email_paterns_i18n'); |
120 | 123 | if ($query) { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | /** |
98 | 98 | * @param string $item |
99 | - * @return string|integer|float|array|boolean |
|
99 | + * @return string |
|
100 | 100 | * @access public |
101 | 101 | * @author |
102 | 102 | * @copyright |
@@ -106,8 +106,8 @@ discard block |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
109 | - * @param string|array $item |
|
110 | - * @param string|integer|float $value |
|
109 | + * @param string $item |
|
110 | + * @param boolean|string $value |
|
111 | 111 | * @return assetManager |
112 | 112 | * @access public |
113 | 113 | * @copyright ImageCMS (c) 2013, Roman <[email protected]> |
@@ -548,9 +548,9 @@ discard block |
||
548 | 548 | |
549 | 549 | /** |
550 | 550 | * Checks if file exists in any of modules dirs. If exists returns its path |
551 | - * @param string|array $files example: ['menu/assets/css/style.css'] |
|
551 | + * @param string[] $files example: ['menu/assets/css/style.css'] |
|
552 | 552 | * @param bool $noExt |
553 | - * @return bool|string returns file path or FALSE |
|
553 | + * @return string|false returns file path or FALSE |
|
554 | 554 | */ |
555 | 555 | private function getModuleFilePath($files, $noExt = true) { |
556 | 556 |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | /** |
228 | 228 | * @param string $string |
229 | 229 | * @param string $prev_string |
230 | - * @return null|string |
|
230 | + * @return string |
|
231 | 231 | */ |
232 | 232 | public function make($string, $prev_string) { |
233 | 233 | |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | * @param string $string |
426 | 426 | * @param integer $part |
427 | 427 | * @param bool $ucFirst |
428 | - * @return array |
|
428 | + * @return string |
|
429 | 429 | */ |
430 | 430 | public function getMorph($string, $part, $ucFirst = false) { |
431 | 431 | |
@@ -809,7 +809,7 @@ discard block |
||
809 | 809 | } |
810 | 810 | |
811 | 811 | /** |
812 | - * @param array $metaArray |
|
812 | + * @param string[] $metaArray |
|
813 | 813 | */ |
814 | 814 | public function setMetaArray($metaArray) { |
815 | 815 |
@@ -440,7 +440,7 @@ |
||
440 | 440 | } |
441 | 441 | |
442 | 442 | /** |
443 | - * @return true |
|
443 | + * @return boolean |
|
444 | 444 | */ |
445 | 445 | public function deinstallModule() { |
446 | 446 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | |
14 | 14 | /** |
15 | 15 | * @param string $content |
16 | - * @return mixed |
|
16 | + * @return string |
|
17 | 17 | */ |
18 | 18 | function href_nofollow($content) { |
19 | 19 | return preg_replace_callback('/<(a\s[^>]+)>/isU', 'seo_nofollow_replace', $content); |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | * |
354 | 354 | * @param string $msg |
355 | 355 | * @param int $priority One of the Propel::LOG_* logging levels |
356 | - * @return boolean |
|
356 | + * @return boolean|null |
|
357 | 357 | */ |
358 | 358 | protected function log($msg, $priority = Propel::LOG_INFO) |
359 | 359 | { |
@@ -1383,7 +1383,7 @@ discard block |
||
1383 | 1383 | * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. |
1384 | 1384 | * The default key type is the column's TableMap::TYPE_PHPNAME. |
1385 | 1385 | * |
1386 | - * @param mixed $parser A AbstractParser instance, |
|
1386 | + * @param string $parser A AbstractParser instance, |
|
1387 | 1387 | * or a format name ('XML', 'YAML', 'JSON', 'CSV') |
1388 | 1388 | * @param string $data The source data to import from |
1389 | 1389 | * @param string $keyType The type of keys the array uses. |
@@ -2054,7 +2054,7 @@ discard block |
||
2054 | 2054 | * Set the value of [src] column. |
2055 | 2055 | * |
2056 | 2056 | * @param string $v new value |
2057 | - * @return $this|\xbanners\models\BannerImageI18n The current object (for fluent API support) |
|
2057 | + * @return BannerImage The current object (for fluent API support) |
|
2058 | 2058 | */ |
2059 | 2059 | public function setSrc($v) |
2060 | 2060 | { $this->getCurrentTranslation()->setSrc($v); |
@@ -2078,7 +2078,7 @@ discard block |
||
2078 | 2078 | * Set the value of [name] column. |
2079 | 2079 | * |
2080 | 2080 | * @param string $v new value |
2081 | - * @return $this|\xbanners\models\BannerImageI18n The current object (for fluent API support) |
|
2081 | + * @return BannerImage The current object (for fluent API support) |
|
2082 | 2082 | */ |
2083 | 2083 | public function setName($v) |
2084 | 2084 | { $this->getCurrentTranslation()->setName($v); |
@@ -2102,7 +2102,7 @@ discard block |
||
2102 | 2102 | * Set the value of [clicks] column. |
2103 | 2103 | * |
2104 | 2104 | * @param int $v new value |
2105 | - * @return $this|\xbanners\models\BannerImageI18n The current object (for fluent API support) |
|
2105 | + * @return BannerImage The current object (for fluent API support) |
|
2106 | 2106 | */ |
2107 | 2107 | public function setClicks($v) |
2108 | 2108 | { $this->getCurrentTranslation()->setClicks($v); |
@@ -2126,7 +2126,7 @@ discard block |
||
2126 | 2126 | * Set the value of [description] column. |
2127 | 2127 | * |
2128 | 2128 | * @param string $v new value |
2129 | - * @return $this|\xbanners\models\BannerImageI18n The current object (for fluent API support) |
|
2129 | + * @return BannerImage The current object (for fluent API support) |
|
2130 | 2130 | */ |
2131 | 2131 | public function setDescription($v) |
2132 | 2132 | { $this->getCurrentTranslation()->setDescription($v); |