@@ -6,6 +6,9 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public $methods = array('single_image'); |
| 8 | 8 | |
| 9 | + /** |
|
| 10 | + * @param FakeCMSSection $section |
|
| 11 | + */ |
|
| 9 | 12 | function __construct($section, $id = 0) |
| 10 | 13 | { |
| 11 | 14 | $this->value['type'] = 'gallery'; |
@@ -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 | { |
@@ -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 | { |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | * |
| 144 | 144 | * @param object $kernel Kernel |
| 145 | 145 | * @param integer $id Debtor id or debtor identifier_key |
| 146 | - * @param type $tpye String TODO What is this used for as a last parameter? |
|
| 146 | + * @param type $type String TODO What is this used for as a last parameter? |
|
| 147 | 147 | */ |
| 148 | 148 | public static function factory($kernel, $id = 0, $type = "") |
| 149 | 149 | { |
@@ -618,7 +618,7 @@ discard block |
||
| 618 | 618 | /** |
| 619 | 619 | * S�tter status for debtoren |
| 620 | 620 | * |
| 621 | - * @return true / false |
|
| 621 | + * @return boolean / false |
|
| 622 | 622 | */ |
| 623 | 623 | public function setStatus($status) |
| 624 | 624 | { |
@@ -676,7 +676,7 @@ discard block |
||
| 676 | 676 | * @param string $from Where from |
| 677 | 677 | * @param integer $from_id From id |
| 678 | 678 | * |
| 679 | - * @return true / false |
|
| 679 | + * @return boolean / false |
|
| 680 | 680 | */ |
| 681 | 681 | private function setFrom($from = 'manuel', $from_id = 0) |
| 682 | 682 | { |
@@ -1135,7 +1135,7 @@ discard block |
||
| 1135 | 1135 | /** |
| 1136 | 1136 | * Gets the intranet address |
| 1137 | 1137 | * |
| 1138 | - * @return object |
|
| 1138 | + * @return Intraface_Address |
|
| 1139 | 1139 | */ |
| 1140 | 1140 | public function getIntranetAddress() |
| 1141 | 1141 | { |
@@ -1173,7 +1173,7 @@ discard block |
||
| 1173 | 1173 | /** |
| 1174 | 1174 | * Returns the total amount on Debtor |
| 1175 | 1175 | * |
| 1176 | - * @return object Ilib_Variable_Float with total |
|
| 1176 | + * @return Ilib_Variable_Float Ilib_Variable_Float with total |
|
| 1177 | 1177 | */ |
| 1178 | 1178 | public function getTotal() |
| 1179 | 1179 | { |
@@ -1198,7 +1198,7 @@ discard block |
||
| 1198 | 1198 | /** |
| 1199 | 1199 | * Returns arrears on a debtor |
| 1200 | 1200 | * |
| 1201 | - * @return object Ilib_Variable_Float with arrears |
|
| 1201 | + * @return Ilib_Variable_Float Ilib_Variable_Float with arrears |
|
| 1202 | 1202 | */ |
| 1203 | 1203 | public function getArrears() |
| 1204 | 1204 | { |
@@ -1221,7 +1221,7 @@ discard block |
||
| 1221 | 1221 | /** |
| 1222 | 1222 | * returns the possible debtor types! |
| 1223 | 1223 | * |
| 1224 | - * @return array types |
|
| 1224 | + * @return string[] types |
|
| 1225 | 1225 | */ |
| 1226 | 1226 | static function getDebtorTypes() |
| 1227 | 1227 | { |
@@ -1235,7 +1235,7 @@ discard block |
||
| 1235 | 1235 | /** |
| 1236 | 1236 | * returns the possible places where the debtor comes from |
| 1237 | 1237 | * |
| 1238 | - * @return array with the allowed froms |
|
| 1238 | + * @return string[] with the allowed froms |
|
| 1239 | 1239 | */ |
| 1240 | 1240 | private function getFromTypes() |
| 1241 | 1241 | { |
@@ -1251,7 +1251,7 @@ discard block |
||
| 1251 | 1251 | /** |
| 1252 | 1252 | * returns possible status types |
| 1253 | 1253 | * |
| 1254 | - * @return array possible status types |
|
| 1254 | + * @return string[] possible status types |
|
| 1255 | 1255 | */ |
| 1256 | 1256 | private function getStatusTypes() |
| 1257 | 1257 | { |
@@ -1266,7 +1266,7 @@ discard block |
||
| 1266 | 1266 | /** |
| 1267 | 1267 | * returns possible payment methods |
| 1268 | 1268 | * |
| 1269 | - * @return array possible payment methods |
|
| 1269 | + * @return string[] possible payment methods |
|
| 1270 | 1270 | */ |
| 1271 | 1271 | private function getPaymentMethods() |
| 1272 | 1272 | { |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | /** |
| 241 | 241 | * Gets the tax percent on the individual product |
| 242 | 242 | * |
| 243 | - * @return float |
|
| 243 | + * @return integer |
|
| 244 | 244 | */ |
| 245 | 245 | public function getTaxPercent() |
| 246 | 246 | { |
@@ -570,7 +570,7 @@ discard block |
||
| 570 | 570 | /** |
| 571 | 571 | * Returns position object |
| 572 | 572 | * |
| 573 | - * @return object Ilib_Position |
|
| 573 | + * @return Ilib_Position Ilib_Position |
|
| 574 | 574 | */ |
| 575 | 575 | function getPosition($db) |
| 576 | 576 | { |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * Creates the document to write |
| 36 | 36 | * |
| 37 | - * @return PdfMaker object |
|
| 37 | + * @return Intraface_Pdf object |
|
| 38 | 38 | */ |
| 39 | 39 | protected function getDocument() |
| 40 | 40 | { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * @param string $type Output to type (string or file) |
| 49 | 49 | * @param string $filename Filename |
| 50 | 50 | * |
| 51 | - * @return void |
|
| 51 | + * @return string|null |
|
| 52 | 52 | */ |
| 53 | 53 | function output($type = 'string', $filename = 'debtor.pdf') |
| 54 | 54 | { |