[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 134 lignes (5 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 1 fichier phpgwapi/inc/class.contacts.inc.php |
so_ldap() X-Ref |
constructor of the class |
read($keys,$extra_cols='',$join='') X-Ref |
reads row matched by key and puts all cols in the data array param: array $keys array with keys in form internalName => value, may be a scalar value if only one key param: string/array $extra_cols string or array of strings to be added to the SELECT, eg. "count(*) as num" param: string $join='' sql to do a join, added as is after the table-name, eg. ", table2 WHERE x=y" or return: array/boolean data if row could be retrived else False |
save($keys=null) X-Ref |
saves the content of data to the db param: array $keys if given $keys are copied to data before saveing => allows a save as return: int 0 on success and errno != 0 else |
delete($keys=null) X-Ref |
deletes row representing keys in internal data or the supplied $keys if != null param: array $keys if given array with col => value pairs to characterise the rows to delete return: int affected rows, should be 1 if ok, 0 if an error |
search($criteria,$only_keys=True,$order_by='',$extra_cols='',$wildcard='',$empty=False,$op='AND',$start=false,$filter=null,$join='',$need_full_no_count=false) X-Ref |
searches db for rows matching searchcriteria '*' and '?' are replaced with sql-wildcards '%' and '_' param: array/string $criteria array of key and data cols, OR a SQL query (content for WHERE), fully quoted (!) param: boolean/string $only_keys=true True returns only keys, False returns all cols. comma seperated list of keys to return param: string $order_by='' fieldnames + {ASC|DESC} separated by colons ',', can also contain a GROUP BY (if it contains ORDER BY) param: string/array $extra_cols='' string or array of strings to be added to the SELECT, eg. "count(*) as num" param: string $wildcard='' appended befor and after each criteria param: boolean $empty=false False=empty criteria are ignored in query, True=empty have to be empty in row param: string $op='AND' defaults to 'AND', can be set to 'OR' too, then criteria's are OR'ed together param: mixed $start=false if != false, return only maxmatch rows begining with start, or array($start,$num) param: array $filter=null if set (!=null) col-data pairs, to be and-ed (!) into the query without wildcards param: string $join='' sql to do a join, added as is after the table-name, eg. ", table2 WHERE x=y" or param: boolean $need_full_no_count=false If true an unlimited query is run to determine the total number of rows, default false return: array of matching rows (the row is an array of the cols) or False |
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |