@@ -52,6 +52,9 @@ |
||
52 | 52 | return true; |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string[] $array |
|
57 | + */ |
|
55 | 58 | public static function convertArrayToTags($array) |
56 | 59 | { |
57 | 60 | $tags = ''; |
@@ -7,6 +7,9 @@ |
||
7 | 7 | private $cmssite; |
8 | 8 | public $error; |
9 | 9 | |
10 | + /** |
|
11 | + * @param CMS_Site $cmssite |
|
12 | + */ |
|
10 | 13 | function __construct($cmssite) |
11 | 14 | { |
12 | 15 | if (!is_object($cmssite) OR strtolower(get_class($cmssite)) != 'cms_site') { |
@@ -65,6 +65,9 @@ |
||
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'); |
@@ -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_'; |
@@ -6,6 +6,9 @@ |
||
6 | 6 | */ |
7 | 7 | class Intraface_modules_cms_templatesection_Mixed extends CMS_TemplateSection |
8 | 8 | { |
9 | + /** |
|
10 | + * @param CMS_Template $cmspage |
|
11 | + */ |
|
9 | 12 | function __construct($cmspage, $id = 0) |
10 | 13 | { |
11 | 14 | $this->value['type'] = 'mixed'; |
@@ -257,8 +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 | - * |
|
262 | 260 | * @return object |
263 | 261 | */ |
264 | 262 | public function factory($kernel, $type, $value) |
@@ -318,7 +316,7 @@ discard block |
||
318 | 316 | /** |
319 | 317 | * Loads values for the contact into an array |
320 | 318 | * |
321 | - * @return true on success |
|
319 | + * @return boolean on success |
|
322 | 320 | */ |
323 | 321 | private function load() |
324 | 322 | { |
@@ -394,7 +392,7 @@ discard block |
||
394 | 392 | * |
395 | 393 | * @param array $var Values to validate |
396 | 394 | * |
397 | - * @return true on success |
|
395 | + * @return boolean on success |
|
398 | 396 | */ |
399 | 397 | public function validate($var) |
400 | 398 | { |
@@ -502,21 +500,6 @@ discard block |
||
502 | 500 | /** |
503 | 501 | * Saves the contact |
504 | 502 | * |
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 | - * |
|
520 | 503 | * @return void |
521 | 504 | */ |
522 | 505 | public function save($var) |
@@ -616,7 +599,7 @@ discard block |
||
616 | 599 | * |
617 | 600 | * Never delete a contact entirely. Should only be deactivated. |
618 | 601 | * |
619 | - * @return integer 0 = false eller 1 = true |
|
602 | + * @return boolean 0 = false eller 1 = true |
|
620 | 603 | */ |
621 | 604 | public function delete() |
622 | 605 | { |
@@ -659,7 +642,7 @@ discard block |
||
659 | 642 | * |
660 | 643 | * @param string $number |
661 | 644 | * |
662 | - * @return true hvis det er frit |
|
645 | + * @return boolean hvis det er frit |
|
663 | 646 | */ |
664 | 647 | public function isNumberFree($number) |
665 | 648 | { |
@@ -822,7 +805,7 @@ discard block |
||
822 | 805 | * |
823 | 806 | * TODO M�ske burde denne metode hedde loadKeywords()? |
824 | 807 | * |
825 | - * @return object |
|
808 | + * @return Keyword |
|
826 | 809 | */ |
827 | 810 | function getKeywords() |
828 | 811 | { |
@@ -858,7 +841,7 @@ discard block |
||
858 | 841 | * |
859 | 842 | * @param integer $id Optional id of the contact person |
860 | 843 | * |
861 | - * @return object |
|
844 | + * @return ContactPerson |
|
862 | 845 | */ |
863 | 846 | function loadContactPerson($id = 0) |
864 | 847 | { |
@@ -124,6 +124,9 @@ |
||
124 | 124 | } |
125 | 125 | } |
126 | 126 | |
127 | + /** |
|
128 | + * @param integer $id |
|
129 | + */ |
|
127 | 130 | public function factory($kernel, $id) |
128 | 131 | { |
129 | 132 | $gateway = new Intraface_modules_contact_MemosGateway($kernel); |
@@ -548,6 +548,9 @@ |
||
548 | 548 | return 'Create'; |
549 | 549 | } |
550 | 550 | |
551 | + /** |
|
552 | + * @return string |
|
553 | + */ |
|
551 | 554 | function getType() |
552 | 555 | { |
553 | 556 | return $this->context->getType(); |
@@ -87,6 +87,9 @@ |
||
87 | 87 | return 'Create'; |
88 | 88 | } |
89 | 89 | |
90 | + /** |
|
91 | + * @return string |
|
92 | + */ |
|
90 | 93 | function getType() |
91 | 94 | { |
92 | 95 | return $this->context->context->getType(); |