@@ -18,6 +18,9 @@ |
||
| 18 | 18 | private $subscriber; |
| 19 | 19 | private $credentials; |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param integer $list_id |
|
| 23 | + */ |
|
| 21 | 24 | private function factoryList($list_id) |
| 22 | 25 | { |
| 23 | 26 | $this->list = new NewsletterList($this->kernel, $list_id); |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * |
| 62 | 62 | * @param struct $credentials Credentials to use the server |
| 63 | 63 | * |
| 64 | - * @return array |
|
| 64 | + * @return boolean |
|
| 65 | 65 | */ |
| 66 | 66 | protected function checkCredentials($credentials) |
| 67 | 67 | { |
@@ -49,7 +49,6 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * Constructor |
| 51 | 51 | * |
| 52 | - * @param string $encoding The encoding wich the server recieves and returns data in |
|
| 53 | 52 | * |
| 54 | 53 | * @return void |
| 55 | 54 | */ |
@@ -62,7 +61,7 @@ discard block |
||
| 62 | 61 | * |
| 63 | 62 | * @param struct $credentials Credentials to use the server |
| 64 | 63 | * |
| 65 | - * @return array |
|
| 64 | + * @return boolean |
|
| 66 | 65 | */ |
| 67 | 66 | protected function checkCredentials($credentials) |
| 68 | 67 | { |
@@ -126,6 +126,9 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | + /** |
|
| 130 | + * @param string $f |
|
| 131 | + */ |
|
| 129 | 132 | function deleteUploadDirectory($f) |
| 130 | 133 | { |
| 131 | 134 | if ( is_dir( $f ) ){ |
@@ -142,6 +145,7 @@ discard block |
||
| 142 | 145 | |
| 143 | 146 | /** |
| 144 | 147 | * grants access to given modules |
| 148 | + * @param string $modules |
|
| 145 | 149 | */ |
| 146 | 150 | public function grantModuleAccess($modules) |
| 147 | 151 | { |
@@ -234,6 +238,7 @@ discard block |
||
| 234 | 238 | |
| 235 | 239 | /** |
| 236 | 240 | * splits a mysql export into separate |
| 241 | + * @param string $sql |
|
| 237 | 242 | */ |
| 238 | 243 | static function splitSql($sql) |
| 239 | 244 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * @param string $belong_to What the address belongs to, corresponding to the ones in Address::getBelongToTypes() |
| 84 | 84 | * @param integer $belong_to_id From belong_to. NB not id on the address |
| 85 | 85 | * |
| 86 | - * @return object Address |
|
| 86 | + * @return Intraface_Address Address |
|
| 87 | 87 | */ |
| 88 | 88 | function factory($belong_to, $belong_to_id) |
| 89 | 89 | { |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | /** |
| 95 | 95 | * Returns possible belong to types |
| 96 | 96 | * |
| 97 | - * @return array |
|
| 97 | + * @return string[] |
|
| 98 | 98 | */ |
| 99 | 99 | public static function getBelongToTypes() |
| 100 | 100 | { |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | * |
| 221 | 221 | * @param array $array_var et array med felter med adressen. Se felterne i init funktionen: $this->fields |
| 222 | 222 | * |
| 223 | - * @return bolean true or false |
|
| 223 | + * @return boolean true or false |
|
| 224 | 224 | */ |
| 225 | 225 | function save($array_var) |
| 226 | 226 | { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * Public: henter beløbet efter konvertering |
| 52 | - * @return beløb |
|
| 52 | + * @return double |
|
| 53 | 53 | */ |
| 54 | 54 | function get() |
| 55 | 55 | { |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | /** |
| 44 | 44 | * hasIdentity() |
| 45 | 45 | * |
| 46 | - * @return mixed user id or false |
|
| 46 | + * @return boolean user id or false |
|
| 47 | 47 | */ |
| 48 | 48 | public function hasIdentity() |
| 49 | 49 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | /** |
| 84 | 84 | * Implements the observer pattern |
| 85 | 85 | * |
| 86 | - * @param object $observer |
|
| 86 | + * @param Intraface_Log $observer |
|
| 87 | 87 | * |
| 88 | 88 | * @return boolean |
| 89 | 89 | */ |
@@ -54,6 +54,10 @@ |
||
| 54 | 54 | return $this->render(); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | + /** |
|
| 58 | + * @param string $username |
|
| 59 | + * @param string $password |
|
| 60 | + */ |
|
| 57 | 61 | protected function selectUser($username, $password) |
| 58 | 62 | { |
| 59 | 63 | $adapter = new Intraface_Auth_User($this->mdb2, $this->session()->sessionId(), $username, $password); |
@@ -36,7 +36,6 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * Constructor |
| 38 | 38 | * |
| 39 | - * @param integer $intranet_id The id of the intranet |
|
| 40 | 39 | * |
| 41 | 40 | * @return void |
| 42 | 41 | */ |
@@ -59,7 +58,7 @@ discard block |
||
| 59 | 58 | /** |
| 60 | 59 | * loads |
| 61 | 60 | * |
| 62 | - * @return void |
|
| 61 | + * @return integer|null |
|
| 63 | 62 | */ |
| 64 | 63 | function load() |
| 65 | 64 | { |
@@ -103,9 +102,9 @@ discard block |
||
| 103 | 102 | * @todo might be smarter to throw in an actual module object |
| 104 | 103 | * that would make us sure that it is actually valid |
| 105 | 104 | * |
| 106 | - * @param mixed $module The id or name of the module |
|
| 105 | + * @param string $module The id or name of the module |
|
| 107 | 106 | * |
| 108 | - * @return void |
|
| 107 | + * @return boolean |
|
| 109 | 108 | */ |
| 110 | 109 | function hasModuleAccess($module) |
| 111 | 110 | { |