@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | * @param integer $index номер элемента для натягивания шаблона |
321 | 321 | * @param string $wrapper натянутые шаблоны на всех всех наследников |
322 | 322 | * @access private |
323 | - * @return TRUE |
|
323 | + * @return boolean |
|
324 | 324 | */ |
325 | 325 | private function _prepare_item_tpl($index = 0, $wrapper = FALSE) { |
326 | 326 | if ($wrapper == TRUE) { |
@@ -355,9 +355,8 @@ discard block |
||
355 | 355 | /** |
356 | 356 | * Find sub menus |
357 | 357 | * |
358 | - * @param integer $id |
|
359 | 358 | * @access public |
360 | - * @return mixed |
|
359 | + * @return string|false |
|
361 | 360 | */ |
362 | 361 | private function _get_real_tpl($index = 0, $mode = "item") { |
363 | 362 | if ($mode == "item") { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | /** |
44 | 44 | * add item to wishlist |
45 | - * @param $varId |
|
45 | + * @param integer $varId |
|
46 | 46 | * @param $listId |
47 | 47 | * @param $listName |
48 | 48 | * @return mixed |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | |
65 | 65 | /** |
66 | 66 | * move item |
67 | - * @param $varId |
|
68 | - * @param $wish_list_id |
|
67 | + * @param integer $varId |
|
68 | + * @param integer $wish_list_id |
|
69 | 69 | * @return mixed |
70 | 70 | */ |
71 | 71 | public function moveItem($varId, $wish_list_id) { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | /** |
88 | 88 | * show WL by hash |
89 | - * @param $hash |
|
89 | + * @param string $hash |
|
90 | 90 | * @return boolean |
91 | 91 | */ |
92 | 92 | public function show($hash) { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | /** |
115 | 115 | * get user by id |
116 | - * @param $user_id |
|
116 | + * @param integer $user_id |
|
117 | 117 | * @return boolean |
118 | 118 | */ |
119 | 119 | public function user($user_id) { |
@@ -798,7 +798,7 @@ |
||
798 | 798 | /** |
799 | 799 | * Check user access for page |
800 | 800 | * @param array $roles |
801 | - * @return bool |
|
801 | + * @return boolean|null |
|
802 | 802 | */ |
803 | 803 | public function check_page_access($roles) { |
804 | 804 |
@@ -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()) |
@@ -798,7 +798,7 @@ |
||
798 | 798 | /** |
799 | 799 | * Check user access for page |
800 | 800 | * @param array $roles |
801 | - * @return bool |
|
801 | + * @return boolean|null |
|
802 | 802 | */ |
803 | 803 | public function check_page_access($roles) { |
804 | 804 |
@@ -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); |
@@ -798,7 +798,7 @@ |
||
798 | 798 | /** |
799 | 799 | * Check user access for page |
800 | 800 | * @param array $roles |
801 | - * @return bool |
|
801 | + * @return boolean|null |
|
802 | 802 | */ |
803 | 803 | public function check_page_access($roles) { |
804 | 804 |
@@ -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) { |