@@ -491,6 +491,10 @@ |
||
| 491 | 491 | protected static function call_hook() |
| 492 | 492 | { |
| 493 | 493 | self::$hook_data = array(); |
| 494 | + |
|
| 495 | + /** |
|
| 496 | + * @param string $appname |
|
| 497 | + */ |
|
| 494 | 498 | function display_section($appname,$file,$file2=False) |
| 495 | 499 | { |
| 496 | 500 | admin_ui::$hook_data[$appname] = $file2 ? $file2 : $file; |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | * Delete ACL record in the repository of the class |
| 167 | 167 | * |
| 168 | 168 | * @param string $appname appname or '' for $GLOBALS['egw_info']['flags']['currentapp'] |
| 169 | - * @param string/boolean $location location or false for all locations |
|
| 169 | + * @param boolean $location location or false for all locations |
|
| 170 | 170 | * @return array all ACL records from $this->data. |
| 171 | 171 | */ |
| 172 | 172 | function delete($appname,$location) |
@@ -267,8 +267,8 @@ discard block |
||
| 267 | 267 | /** |
| 268 | 268 | * check required rights agains the internal repository (included rights of $this->account_id and all it's memberships) |
| 269 | 269 | * |
| 270 | - * @param $location app location |
|
| 271 | - * @param $required required right to check against |
|
| 270 | + * @param string $location app location |
|
| 271 | + * @param integer $required required right to check against |
|
| 272 | 272 | * @param $appname optional defaults to currentapp |
| 273 | 273 | * @return boolean |
| 274 | 274 | */ |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | * cancels a timer |
| 325 | 325 | * |
| 326 | 326 | * @param string $id has to be the one used to set it. |
| 327 | - * @return boolean True if the timer exists and is not expired. |
|
| 327 | + * @return integer True if the timer exists and is not expired. |
|
| 328 | 328 | */ |
| 329 | 329 | function cancel_timer($id) |
| 330 | 330 | { |
@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | /** |
| 471 | 471 | * reads all matching db-rows / jobs |
| 472 | 472 | * |
| 473 | - * @param string $id =0 reads all expired rows / jobs ready to run\ |
|
| 473 | + * @param integer $id =0 reads all expired rows / jobs ready to run\ |
|
| 474 | 474 | * != 0 reads all rows/jobs matching $id (sql-wildcards '%' and '_' can be used) |
| 475 | 475 | * @param array|string $cols ='*' string or array of column-names / select-expressions |
| 476 | 476 | * @param int|bool $offset =False offset for a limited query or False (default) |
@@ -558,7 +558,7 @@ discard block |
||
| 558 | 558 | /** |
| 559 | 559 | * delete db-row / job with $id |
| 560 | 560 | * |
| 561 | - * @return boolean False if $id not found else True |
|
| 561 | + * @return integer False if $id not found else True |
|
| 562 | 562 | */ |
| 563 | 563 | function delete($id) |
| 564 | 564 | { |
@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | * check if users are supposed to change their password every x sdays, then check if password is of old age |
| 85 | 85 | * or the devil-admin reset the users password and forced the user to change his password on next login. |
| 86 | 86 | * |
| 87 | - * @param string& $message =null on return false: message why password needs to be changed |
|
| 88 | - * @return boolean true: all good, false: password change required, null: password expires in N days |
|
| 87 | + * @param string $message =null on return false: message why password needs to be changed |
|
| 88 | + * @return boolean|null true: all good, false: password change required, null: password expires in N days |
|
| 89 | 89 | */ |
| 90 | 90 | static function check_password_change(&$message=null) |
| 91 | 91 | { |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | * |
| 295 | 295 | * uses the encryption type set in setup and calls the appropriate encryption functions |
| 296 | 296 | * |
| 297 | - * @param $password password to encrypt |
|
| 297 | + * @param string $password password to encrypt |
|
| 298 | 298 | */ |
| 299 | 299 | static function encrypt_password($password,$sql=False) |
| 300 | 300 | { |
@@ -406,6 +406,7 @@ discard block |
||
| 406 | 406 | * @param string $form_val user input value for comparison |
| 407 | 407 | * @param string $db_val stored value / hash (from database) |
| 408 | 408 | * @param string &$type detected crypt type on return |
| 409 | + * @param string $type |
|
| 409 | 410 | * @return boolean True on successful comparison |
| 410 | 411 | */ |
| 411 | 412 | static function crypt_compare($form_val, $db_val, &$type) |
@@ -618,7 +619,7 @@ discard block |
||
| 618 | 619 | * @param string $forbid_name =null if "yes" username or full-name split by delimiters AND longer then 3 chars are |
| 619 | 620 | * forbidden to be included in password, default to whatever set in config for "passwd_forbid_name" |
| 620 | 621 | * @param array|int $account =null array with account_lid and account_fullname or account_id for $forbid_name check |
| 621 | - * @return mixed false if password is considered "safe" (or no requirements) or a string $message if "unsafe" |
|
| 622 | + * @return string|false false if password is considered "safe" (or no requirements) or a string $message if "unsafe" |
|
| 622 | 623 | */ |
| 623 | 624 | static function crackcheck($passwd, $reqstrength=null, $minlength=null, $forbid_name=null, $account=null) |
| 624 | 625 | { |
@@ -94,6 +94,7 @@ |
||
| 94 | 94 | * @param Handler $handler |
| 95 | 95 | * @param array $filter filter for propfind call |
| 96 | 96 | * @param array $files =array() extra files/responses to return too |
| 97 | + * @param string $path |
|
| 97 | 98 | */ |
| 98 | 99 | public function __construct(Handler $handler, $path, array $filter,array &$files=array()) |
| 99 | 100 | { |
@@ -322,13 +322,13 @@ discard block |
||
| 322 | 322 | * return a sorted array populated with categories (main sorting criteria is hierachy!) |
| 323 | 323 | * |
| 324 | 324 | * @param int $start =0 see $limit |
| 325 | - * @param boolean|int $limit if true limited query to maxmatches rows (starting with $start) |
|
| 325 | + * @param boolean $limit if true limited query to maxmatches rows (starting with $start) |
|
| 326 | 326 | * @param string $query ='' query-pattern |
| 327 | 327 | * @param string $sort ='ASC' sort order, either defaults to 'ASC' |
| 328 | 328 | * @param string $order ='cat_name' order by |
| 329 | 329 | * @param boolean|string $globals includes the global egroupware categories or not, |
| 330 | 330 | * 'all_no_acl' to return global and all non-private user categories independent of ACL |
| 331 | - * @param array|int $parent_id =0 return only subcats of $parent_id(s) |
|
| 331 | + * @param integer $parent_id =0 return only subcats of $parent_id(s) |
|
| 332 | 332 | * @param boolean $unserialize_data =true return $cat['data'] as array (not serialized array) |
| 333 | 333 | * @return array with cats |
| 334 | 334 | */ |
@@ -507,7 +507,7 @@ discard block |
||
| 507 | 507 | * @param mixed $category category as array or the category_id |
| 508 | 508 | * @param boolean $no_acl_check =false if true, grants are NOT checked, gives access to all non-private categories of all users |
| 509 | 509 | * @param boolean $allow_global_read if true, global cats are allowed (independent of app) for reading |
| 510 | - * @return boolean true permission granted, false for permission denied, null for category does not exist |
|
| 510 | + * @return null|boolean true permission granted, false for permission denied, null for category does not exist |
|
| 511 | 511 | */ |
| 512 | 512 | public function check_perms($needed, $category, $no_acl_check=false, $allow_global_read=false) |
| 513 | 513 | { |
@@ -675,7 +675,7 @@ discard block |
||
| 675 | 675 | * check_consistency4update - for edit |
| 676 | 676 | * |
| 677 | 677 | * @param array $values array with cat-data (it need to be complete, as everything get's written) |
| 678 | - * @return mixed string/boolean errorstring if consitency check failed / true if the consistency check did not fail |
|
| 678 | + * @return string|boolean string/boolean errorstring if consitency check failed / true if the consistency check did not fail |
|
| 679 | 679 | */ |
| 680 | 680 | function check_consistency4update($values) |
| 681 | 681 | { |
@@ -822,7 +822,7 @@ discard block |
||
| 822 | 822 | * |
| 823 | 823 | * @param int|array $cat |
| 824 | 824 | * @param boolean $application_global =false true check for application global categories only (appname == 'phpgw') |
| 825 | - * @return boolean |
|
| 825 | + * @return null|boolean |
|
| 826 | 826 | */ |
| 827 | 827 | static function is_global($cat,$application_global=false) |
| 828 | 828 | { |
@@ -1030,7 +1030,7 @@ discard block |
||
| 1030 | 1030 | * |
| 1031 | 1031 | * @param string appname |
| 1032 | 1032 | * |
| 1033 | - * @return Returns the URL, but you do not need to do anything with it. |
|
| 1033 | + * @return string the URL, but you do not need to do anything with it. |
|
| 1034 | 1034 | */ |
| 1035 | 1035 | public static function css($appname) |
| 1036 | 1036 | { |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | /** |
| 195 | 195 | * sets a single value in the repositry, you need to call save_repository after |
| 196 | 196 | * |
| 197 | - * @param $variable_name string name of the config |
|
| 197 | + * @param string $variable_name string name of the config |
|
| 198 | 198 | * @param $variable_data mixed the content |
| 199 | 199 | */ |
| 200 | 200 | function value($variable_name,$variable_data) |
@@ -213,7 +213,6 @@ |
||
| 213 | 213 | /** |
| 214 | 214 | * Remove attributes we are not allowed to update |
| 215 | 215 | * |
| 216 | - * @param array $attributes |
|
| 217 | 216 | */ |
| 218 | 217 | function sanitize_update(array &$ldapContact) |
| 219 | 218 | { |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | * For a union-query you call search for each query with $start=='UNION' and one more with only $order_by and $start set to run the union-query. |
| 251 | 251 | * |
| 252 | 252 | * @param array|string $criteria array of key and data cols, OR a SQL query (content for WHERE), fully quoted (!) |
| 253 | - * @param boolean|string|array $only_keys =true True returns only keys, False returns all cols. or |
|
| 253 | + * @param boolean|string $only_keys =true True returns only keys, False returns all cols. or |
|
| 254 | 254 | * comma seperated list or array of columns to return |
| 255 | 255 | * @param string $order_by ='' fieldnames + {ASC|DESC} separated by colons ',', can also contain a GROUP BY (if it contains ORDER BY) |
| 256 | 256 | * @param string|array $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num" |
@@ -508,7 +508,7 @@ discard block |
||
| 508 | 508 | * or whole where array: column-name => value(s) pairs |
| 509 | 509 | * @param string $uid_column ='list_owner' column-name or null to use $uids as where array |
| 510 | 510 | * @param string $member_attr =null null: no members, 'contact_uid', 'contact_id', 'caldav_name' return members as that attribute |
| 511 | - * @param boolean|int|array $limit_in_ab =false if true only return members from the same owners addressbook, |
|
| 511 | + * @param boolean $limit_in_ab =false if true only return members from the same owners addressbook, |
|
| 512 | 512 | * if int|array only return members from the given owners addressbook(s) |
| 513 | 513 | * @return array with list_id => array(list_id,list_name,list_owner,...) pairs |
| 514 | 514 | */ |