@@ -82,6 +82,9 @@ |
||
82 | 82 | return $this->context->getKernel(); |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @return integer |
|
87 | + */ |
|
85 | 88 | function getShopId() |
86 | 89 | { |
87 | 90 | if ($this->query('shop_id')) { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | /** |
70 | 70 | * Creates a parameter |
71 | 71 | * |
72 | - * @return object |
|
72 | + * @return CMS_Parameter |
|
73 | 73 | */ |
74 | 74 | function createParameter() |
75 | 75 | { |
@@ -5,6 +5,9 @@ |
||
5 | 5 | class Intraface_modules_cms_element_Pagelist extends CMS_Element |
6 | 6 | { |
7 | 7 | |
8 | + /** |
|
9 | + * @param FakeCMSSection $section |
|
10 | + */ |
|
8 | 11 | function __construct($section, $id = 0) |
9 | 12 | { |
10 | 13 | $this->value['type'] = 'pagelist'; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * Returns position object |
128 | 128 | * |
129 | 129 | * @param object $db database object |
130 | - * @return object Position |
|
130 | + * @return Ilib_Position Position |
|
131 | 131 | */ |
132 | 132 | public function getPosition($db) |
133 | 133 | { |
@@ -137,13 +137,16 @@ discard block |
||
137 | 137 | /** |
138 | 138 | * returns Template object |
139 | 139 | * |
140 | - * @return object Template |
|
140 | + * @return CMS_Template Template |
|
141 | 141 | */ |
142 | 142 | public function getTemplate() |
143 | 143 | { |
144 | 144 | return $this->template; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $type |
|
149 | + */ |
|
147 | 150 | function factory($kernel, $type, $value) |
148 | 151 | { |
149 | 152 | $gateway = new Intraface_modules_cms_PageGateway($kernel, new DB_Sql); |
@@ -745,6 +748,7 @@ discard block |
||
745 | 748 | |
746 | 749 | /** |
747 | 750 | * @todo is this still used after the introduction of publish and unpublish |
751 | + * @param string $status |
|
748 | 752 | */ |
749 | 753 | function setStatus($status) |
750 | 754 | { |
@@ -815,7 +819,7 @@ discard block |
||
815 | 819 | /** |
816 | 820 | * Returns the possible page types |
817 | 821 | * |
818 | - * @return array possible page types |
|
822 | + * @return string[] possible page types |
|
819 | 823 | */ |
820 | 824 | public function getTypes() |
821 | 825 | { |
@@ -825,7 +829,7 @@ discard block |
||
825 | 829 | /** |
826 | 830 | * Returns the possible page types but with a binary index |
827 | 831 | * |
828 | - * @return array possible page types with binary index |
|
832 | + * @return string[] possible page types with binary index |
|
829 | 833 | */ |
830 | 834 | public static function getTypesWithBinaryIndex() |
831 | 835 | { |
@@ -62,11 +62,17 @@ |
||
62 | 62 | return new CMS_Parameter($this); |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $key |
|
67 | + */ |
|
65 | 68 | function addParameter($key, $value) |
66 | 69 | { |
67 | 70 | return $this->parameter->save($key, $value); |
68 | 71 | } |
69 | 72 | |
73 | + /** |
|
74 | + * @param string $type |
|
75 | + */ |
|
70 | 76 | function factory($object, $type, $value) |
71 | 77 | { |
72 | 78 | $class_prefix = 'Intraface_modules_cms_templatesection_'; |
@@ -12,6 +12,9 @@ discard block |
||
12 | 12 | { |
13 | 13 | private $allowed_tags = ''; |
14 | 14 | |
15 | + /** |
|
16 | + * @param FakeCMSPage $cmspage |
|
17 | + */ |
|
15 | 18 | function __construct($cmspage, $id = 0) |
16 | 19 | { |
17 | 20 | $this->value['type'] = 'longtext'; |
@@ -52,6 +55,9 @@ discard block |
||
52 | 55 | return true; |
53 | 56 | } |
54 | 57 | |
58 | + /** |
|
59 | + * @param string[] $array |
|
60 | + */ |
|
55 | 61 | public static function convertArrayToTags($array) |
56 | 62 | { |
57 | 63 | $tags = ''; |
@@ -65,6 +65,9 @@ discard block |
||
65 | 65 | return 'cms_template'; |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @param DB_Sql $db |
|
70 | + */ |
|
68 | 71 | function getPosition($db) |
69 | 72 | { |
70 | 73 | return new Ilib_Position($db, 'cms_template', $this->id, 'site_id = ' . $this->cmssite->get('id'), 'id', 'position'); |
@@ -131,6 +134,9 @@ discard block |
||
131 | 134 | } |
132 | 135 | |
133 | 136 | |
137 | + /** |
|
138 | + * @return string |
|
139 | + */ |
|
134 | 140 | function save($var) |
135 | 141 | { |
136 | 142 | if (!empty($var['for_page_type']) && is_array($var['for_page_type'])) { |
@@ -257,7 +257,6 @@ discard block |
||
257 | 257 | * |
258 | 258 | * @param object $kernel |
259 | 259 | * @param string $type What should the contact object be created from |
260 | - * @param string $id The value which corresponds to the type |
|
261 | 260 | * |
262 | 261 | * @return object |
263 | 262 | */ |
@@ -318,7 +317,7 @@ discard block |
||
318 | 317 | /** |
319 | 318 | * Loads values for the contact into an array |
320 | 319 | * |
321 | - * @return true on success |
|
320 | + * @return boolean on success |
|
322 | 321 | */ |
323 | 322 | private function load() |
324 | 323 | { |
@@ -394,7 +393,7 @@ discard block |
||
394 | 393 | * |
395 | 394 | * @param array $var Values to validate |
396 | 395 | * |
397 | - * @return true on success |
|
396 | + * @return boolean on success |
|
398 | 397 | */ |
399 | 398 | public function validate($var) |
400 | 399 | { |
@@ -502,20 +501,6 @@ discard block |
||
502 | 501 | /** |
503 | 502 | * Saves the contact |
504 | 503 | * |
505 | - * @param int $var['id'] Kundeid |
|
506 | - * @param string $var['company'] |
|
507 | - * @param string $var['address'] |
|
508 | - * @param string $var['postalcode'] |
|
509 | - * @param string $var['town'] |
|
510 | - * @param string $var['country'] |
|
511 | - * @param string $var['email'] |
|
512 | - * @param string $var['website'] |
|
513 | - * @param string $var['phone'] |
|
514 | - * @param string $var['deliveryaddress'] |
|
515 | - * @param string $var['deliverypostalcode'] |
|
516 | - * @param string $var['deliverytown'] |
|
517 | - * @param string $var['deliverycountry'] |
|
518 | - * @param string $var['paymentcondition'] |
|
519 | 504 | * |
520 | 505 | * @return void |
521 | 506 | */ |
@@ -616,7 +601,7 @@ discard block |
||
616 | 601 | * |
617 | 602 | * Never delete a contact entirely. Should only be deactivated. |
618 | 603 | * |
619 | - * @return integer 0 = false eller 1 = true |
|
604 | + * @return boolean 0 = false eller 1 = true |
|
620 | 605 | */ |
621 | 606 | public function delete() |
622 | 607 | { |
@@ -659,7 +644,7 @@ discard block |
||
659 | 644 | * |
660 | 645 | * @param string $number |
661 | 646 | * |
662 | - * @return true hvis det er frit |
|
647 | + * @return boolean hvis det er frit |
|
663 | 648 | */ |
664 | 649 | public function isNumberFree($number) |
665 | 650 | { |
@@ -822,7 +807,7 @@ discard block |
||
822 | 807 | * |
823 | 808 | * TODO M�ske burde denne metode hedde loadKeywords()? |
824 | 809 | * |
825 | - * @return object |
|
810 | + * @return Keyword |
|
826 | 811 | */ |
827 | 812 | function getKeywords() |
828 | 813 | { |
@@ -858,7 +843,7 @@ discard block |
||
858 | 843 | * |
859 | 844 | * @param integer $id Optional id of the contact person |
860 | 845 | * |
861 | - * @return object |
|
846 | + * @return ContactPerson |
|
862 | 847 | */ |
863 | 848 | function loadContactPerson($id = 0) |
864 | 849 | { |
@@ -8,6 +8,9 @@ |
||
8 | 8 | |
9 | 9 | class OnlinePaymentDefault extends OnlinePayment |
10 | 10 | { |
11 | + /** |
|
12 | + * @param integer $id |
|
13 | + */ |
|
11 | 14 | function __construct($kernel, $id) { |
12 | 15 | |
13 | 16 | parent::__construct($kernel, $id); |