@@ -592,7 +592,7 @@ discard block |
||
| 592 | 592 | * @param array|string $criteria array of key and data cols, OR string to search over all standard search fields |
| 593 | 593 | * @param boolean|string $only_keys =true True returns only keys, False returns all cols. comma seperated list of keys to return |
| 594 | 594 | * @param string $order_by ='' fieldnames + {ASC|DESC} separated by colons ',', can also contain a GROUP BY (if it contains ORDER BY) |
| 595 | - * @param string|array $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num" |
|
| 595 | + * @param string $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num" |
|
| 596 | 596 | * @param string $wildcard ='' appended befor and after each criteria |
| 597 | 597 | * @param boolean $empty =false False=empty criteria are ignored in query, True=empty have to be empty in row |
| 598 | 598 | * @param string $op ='AND' defaults to 'AND', can be set to 'OR' too, then criteria's are OR'ed together |
@@ -814,8 +814,6 @@ discard block |
||
| 814 | 814 | * delete / move all contacts of an addressbook |
| 815 | 815 | * |
| 816 | 816 | * @param array $data |
| 817 | - * @param int $data['account_id'] owner to change |
|
| 818 | - * @param int $data['new_owner'] new owner or 0 for delete |
|
| 819 | 817 | */ |
| 820 | 818 | function deleteaccount($data) |
| 821 | 819 | { |
@@ -91,6 +91,7 @@ discard block |
||
| 91 | 91 | * array with values for keys('year','month','day') or 'full' plus 'hour','minute' and optional 'second' |
| 92 | 92 | * @param DateTimeZone $tz =null timezone, default user time (PHP DateTime default to server time!) |
| 93 | 93 | * @param string &$type=null on return type of $time (optional) |
| 94 | + * @param string $type |
|
| 94 | 95 | * @throws Exception if $time can NOT be parsed |
| 95 | 96 | */ |
| 96 | 97 | public function __construct($time='now',DateTimeZone $tz=null,&$type=null) |
@@ -573,7 +574,7 @@ discard block |
||
| 573 | 574 | * - return UTC and oceans at the end |
| 574 | 575 | * - if (user lang is a european language), move Europe to top |
| 575 | 576 | * |
| 576 | - * @return array continent|ocean => array(tz-name => tz-label incl. current time) |
|
| 577 | + * @return string continent|ocean => array(tz-name => tz-label incl. current time) |
|
| 577 | 578 | */ |
| 578 | 579 | public static function getTimezones() |
| 579 | 580 | { |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | * require_once(EGW_INCLUDE_ROOT.'/api/src/Db.php'); |
| 372 | 372 | * EGroupware\Api\Db::$health_check = array('EGroupware\Api\Db', 'galera_cluster_health'); |
| 373 | 373 | * |
| 374 | - * @param Api\Db $db already connected Api\Db instance to check |
|
| 374 | + * @param Db $db already connected Api\Db instance to check |
|
| 375 | 375 | * @throws Db\Exception\Connection if node should NOT be used |
| 376 | 376 | */ |
| 377 | 377 | static function galera_cluster_health(Db $db) |
@@ -1077,7 +1077,6 @@ discard block |
||
| 1077 | 1077 | * |
| 1078 | 1078 | * Example: $db->concat($db->quote('Hallo '),'username') would return |
| 1079 | 1079 | * for mysql "concat('Hallo ',username)" or "'Hallo ' || username" for postgres |
| 1080 | - * @param string $str1 already quoted stringliteral or column-name, variable number of arguments |
|
| 1081 | 1080 | * @return string to be used in a query |
| 1082 | 1081 | */ |
| 1083 | 1082 | function concat(/*$str1, ...*/) |
@@ -1097,7 +1096,7 @@ discard block |
||
| 1097 | 1096 | * @param string $expr column-name or expression optional prefixed with "DISTINCT" |
| 1098 | 1097 | * @param string $order_by ='' optional order |
| 1099 | 1098 | * @param string $separator =',' optional separator, default is comma |
| 1100 | - * @return string|boolean false if not supported by dbms |
|
| 1099 | + * @return false|string false if not supported by dbms |
|
| 1101 | 1100 | */ |
| 1102 | 1101 | function group_concat($expr, $order_by='', $separator=',') |
| 1103 | 1102 | { |
@@ -1430,7 +1429,7 @@ discard block |
||
| 1430 | 1429 | * array('visits=visits+1') gives just "visits=visits+1" (no quoting at all !!!) |
| 1431 | 1430 | * @param boolean|string $use_key If $use_key===True a "$key=" prefix each value (default), typically set to False |
| 1432 | 1431 | * or 'VALUES' for insert querys, on 'VALUES' "(key1,key2,...) VALUES (val1,val2,...)" is returned |
| 1433 | - * @param array|boolean $only if set to an array only colums which are set (as data !!!) are written |
|
| 1432 | + * @param boolean $only if set to an array only colums which are set (as data !!!) are written |
|
| 1434 | 1433 | * typicaly used to form a WHERE-clause from the primary keys. |
| 1435 | 1434 | * If set to True, only columns from the colum_definitons are written. |
| 1436 | 1435 | * @param array|boolean $column_definitions this can be set to the column-definitions-array |
@@ -1910,13 +1909,6 @@ discard block |
||
| 1910 | 1909 | * gives "(name='test\'ed' AND lang='en') OR 'owner' IN (0,4,5,6,10)" if name,lang are strings and owner is an integer |
| 1911 | 1910 | * |
| 1912 | 1911 | * @param string|array $table_def table-name or definition array |
| 1913 | - * @param mixed $args variable number of arguments of the following types: |
|
| 1914 | - * string: get's as is into the result |
|
| 1915 | - * array: column-name / value pairs: the value gets quoted according to the type of the column and prefixed |
|
| 1916 | - * with column-name=, multiple pairs are AND'ed together, see db::column_data_implode |
|
| 1917 | - * bool: If False or is_null($arg): the next 2 (!) arguments gets ignored |
|
| 1918 | - * |
|
| 1919 | - * Please note: As the function has a variable number of arguments, you CAN NOT add further parameters !!! |
|
| 1920 | 1912 | * |
| 1921 | 1913 | * @return string the expression generated from the arguments |
| 1922 | 1914 | */ |
@@ -2054,7 +2046,7 @@ discard block |
||
| 2054 | 2046 | * Strip eg. a prefix from the keys of an array |
| 2055 | 2047 | * |
| 2056 | 2048 | * @param array $arr |
| 2057 | - * @param string|array $strip |
|
| 2049 | + * @param string $strip |
|
| 2058 | 2050 | * @return array |
| 2059 | 2051 | */ |
| 2060 | 2052 | static function strip_array_keys($arr,$strip) |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | * Restore data from a (compressed) csv file |
| 497 | 497 | * |
| 498 | 498 | * @param resource $f file opened with fopen for reading |
| 499 | - * @param int|string $insert_n_rows =10 how many rows to insert in one sql statement, or string with column-name used as unique key for insert |
|
| 499 | + * @param integer $insert_n_rows =10 how many rows to insert in one sql statement, or string with column-name used as unique key for insert |
|
| 500 | 500 | * @returns int number of rows read from csv file |
| 501 | 501 | */ |
| 502 | 502 | function db_restore($f, $insert_n_rows=10) |
@@ -1044,7 +1044,7 @@ discard block |
||
| 1044 | 1044 | /** |
| 1045 | 1045 | * Backup all schemas in the form of a setup/tables_current.inc.php file |
| 1046 | 1046 | * |
| 1047 | - * @param resource|boolean $f |
|
| 1047 | + * @param resource $f |
|
| 1048 | 1048 | */ |
| 1049 | 1049 | function schema_backup($f=False) |
| 1050 | 1050 | { |
@@ -1089,6 +1089,7 @@ discard block |
||
| 1089 | 1089 | * Dump an array as php source |
| 1090 | 1090 | * |
| 1091 | 1091 | * copied from etemplate/inc/class.db_tools.inc.php |
| 1092 | + * @param integer $depth |
|
| 1092 | 1093 | */ |
| 1093 | 1094 | private static function write_array($arr,$depth,$parent='') |
| 1094 | 1095 | { |
@@ -94,10 +94,10 @@ |
||
| 94 | 94 | /** |
| 95 | 95 | * Constructor |
| 96 | 96 | * |
| 97 | - * @param Traversable $rs |
|
| 97 | + * @param \Traversable $rs |
|
| 98 | 98 | * @param callback $callback |
| 99 | 99 | * @param array $params =array() additional parameters, row is always first parameter |
| 100 | - * @param $key_callback =null optional callback, if you want different keys |
|
| 100 | + * @param \Closure $key_callback =null optional callback, if you want different keys |
|
| 101 | 101 | */ |
| 102 | 102 | public function __construct(\Traversable $rs, $callback, $params=array(), $key_callback=null) |
| 103 | 103 | { |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | * @deprecated not used anymore as it costs to much performance, use transactions if needed |
| 186 | 186 | * @param string $table name of table to lock |
| 187 | 187 | * @param string $mode type of lock required (optional), default write |
| 188 | - * @return bool True if sucessful, False if fails |
|
| 188 | + * @return boolean|null True if sucessful, False if fails |
|
| 189 | 189 | */ |
| 190 | 190 | function lock($table, $mode='write') |
| 191 | 191 | { |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | * Unlock a table |
| 197 | 197 | * |
| 198 | 198 | * @deprecated not used anymore as it costs to much performance, use transactions if needed |
| 199 | - * @return bool True if sucessful, False if fails |
|
| 199 | + * @return boolean|null True if sucessful, False if fails |
|
| 200 | 200 | */ |
| 201 | 201 | function unlock() |
| 202 | 202 | {} |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * Constructor of schema-processor |
| 97 | 97 | * |
| 98 | 98 | * @param string $dbms type of the database: 'mysql','pgsql','mssql','maxdb' |
| 99 | - * @param Db $db =null database class, if null we use $GLOBALS['egw']->db |
|
| 99 | + * @param $db =null database class, if null we use $GLOBALS['egw']->db |
|
| 100 | 100 | * @return schema_proc |
| 101 | 101 | */ |
| 102 | 102 | function __construct($dbms=False, Api\Db $db=null) |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | * |
| 397 | 397 | * @param string $sTableName |
| 398 | 398 | * @param bool $preserveValue |
| 399 | - * @return boolean|string sequence-name or false |
|
| 399 | + * @return false|string sequence-name or false |
|
| 400 | 400 | */ |
| 401 | 401 | function _PostgresHasOldSequence($sTableName,$preserveValue=False) |
| 402 | 402 | { |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | /** |
| 423 | 423 | * Check if we have an old, not automaticaly droped sequence and drop it |
| 424 | 424 | * |
| 425 | - * @param $sTableName |
|
| 425 | + * @param string $sTableName |
|
| 426 | 426 | */ |
| 427 | 427 | function _PostgresTestDropOldSequence($sTableName) |
| 428 | 428 | { |
@@ -877,12 +877,7 @@ discard block |
||
| 877 | 877 | /** |
| 878 | 878 | * Execute a query |
| 879 | 879 | * |
| 880 | - * @param string $Query_String the query to be executed |
|
| 881 | - * @param mixed $line the line method was called from - use __LINE__ |
|
| 882 | - * @param string $file the file method was called from - use __FILE__ |
|
| 883 | - * @param int $offset row to start from |
|
| 884 | - * @param int $num_rows number of rows to return (optional), if unset will use $GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'] |
|
| 885 | - * @return ADORecordSet or false, if the query fails |
|
| 880 | + * @param integer $line |
|
| 886 | 881 | */ |
| 887 | 882 | function query($sQuery, $line='', $file='') |
| 888 | 883 | { |
@@ -898,8 +893,6 @@ discard block |
||
| 898 | 893 | * if the row exists db::update is called else a new row with $date merged with $where gets inserted (data has precedence) |
| 899 | 894 | * @param int $line line-number to pass to query |
| 900 | 895 | * @param string $file file-name to pass to query |
| 901 | - * @param string $app=false string with name of app, this need to be set in setup anyway!!! |
|
| 902 | - * @return ADORecordSet or false, if the query fails |
|
| 903 | 896 | */ |
| 904 | 897 | function insert($table,$data,$where,$line,$file,$app=False,$use_prepared_statement=false) |
| 905 | 898 | { |
@@ -910,7 +903,6 @@ discard block |
||
| 910 | 903 | * Execute the Sql statements in an array and give diagnostics, if any error occures |
| 911 | 904 | * |
| 912 | 905 | * @param array $aSql array of SQL strings to execute |
| 913 | - * @param int $debug_level for which debug_level (and higher) should the diagnostics always been printed |
|
| 914 | 906 | * @param string $debug variable number of arguments for the debug_message functions in case of an error |
| 915 | 907 | * @return int 2: no error, 1: errors, but continued, 0: errors aborted |
| 916 | 908 | */ |
@@ -953,7 +945,7 @@ discard block |
||
| 953 | 945 | * b) we use the table-names plus all column-names and remove dublicate parts |
| 954 | 946 | * |
| 955 | 947 | * @internal |
| 956 | - * @param $sTableName string name of the table |
|
| 948 | + * @param string $sTableName string name of the table |
|
| 957 | 949 | * @param $aColumnNames array of column-names or string with a single column-name |
| 958 | 950 | * @return string the index-name |
| 959 | 951 | */ |
@@ -1010,6 +1002,7 @@ discard block |
||
| 1010 | 1002 | |
| 1011 | 1003 | /** |
| 1012 | 1004 | * Giving a non-fatal error-message |
| 1005 | + * @param string $str |
|
| 1013 | 1006 | */ |
| 1014 | 1007 | function error($str) |
| 1015 | 1008 | { |
@@ -1038,7 +1031,7 @@ discard block |
||
| 1038 | 1031 | * |
| 1039 | 1032 | * The parameters get formated depending on their type. |
| 1040 | 1033 | * |
| 1041 | - * @param $msg string message with parameters/variables like lang(), eg. '%1' |
|
| 1034 | + * @param string $msg string message with parameters/variables like lang(), eg. '%1' |
|
| 1042 | 1035 | * @param $backtrace include a function-backtrace, default True=On |
| 1043 | 1036 | * should only be set to False=Off, if your code ensures a call with backtrace=On was made before !!! |
| 1044 | 1037 | * @param $param mixed a variable number of parameters, to be inserted in $msg |
@@ -543,7 +543,7 @@ |
||
| 543 | 543 | * |
| 544 | 544 | * @param string $name cell-name |
| 545 | 545 | * @param string $attr attribute-name |
| 546 | - * @param mixed $val if not NULL sets attribute else returns it |
|
| 546 | + * @param boolean|string $val if not NULL sets attribute else returns it |
|
| 547 | 547 | * @return reference to attribute |
| 548 | 548 | * @deprecated use setElementAttribute($name, $attr, $val) |
| 549 | 549 | */ |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | * |
| 156 | 156 | * @param string|XMLReader $xml |
| 157 | 157 | * @param boolean $cloned =true true: object does NOT need to be cloned, false: to set attribute, set them in cloned object |
| 158 | - * @return Template current object or clone, if any attribute was set |
|
| 158 | + * @return Widget current object or clone, if any attribute was set |
|
| 159 | 159 | */ |
| 160 | 160 | public function set_attrs($xml, $cloned=true) |
| 161 | 161 | { |