[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 91 lignes (4 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 1 fichier etemplate/inc/class.so_sql.inc.php |
somilestones:: (3 méthodes):
somilestones()
search()
titles()
Classe: somilestones - X-Ref
Milestones storage object of the projectmanagersomilestones($pm_id=null,$ms_id=null) X-Ref |
Constructor, calls the constructor of the extended class It is sufficent to give a ms_id, as they are unique param: int $pm_id pm_id of the project to use, default null param: int $ms_id ms_id of the milestone to load, default null |
search($criteria,$only_keys=True,$order_by='ms_date',$extra_cols='',$wildcard='',$empty=False,$op='AND',$start=false,$filter=null,$join='') X-Ref |
searches db for rows matching searchcriteria, reimplemented to automatic add $this->pm_id '*' 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 $only_keys=true True returns only keys, False returns all cols 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 return: array of matching rows (the row is an array of the cols) or False |
titles($keys=array() X-Ref |
Pas de description |
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |