[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/inc/ -> class.contacts_sql.inc.php (sommaire)

This class provides a contact database scheme. It attempts to be based on the vcard 2.1 standard, with mods as needed to make for more reasonable sql storage. Note that changes here must also work in the LDAP version. Syntax: CreateObject('phpgwapi.contacts'); Example1: $contacts = CreateObject('phpgwapi.contacts');

Author: jengo/Milosch
License: LGPL
Version: $Revision: 22506 $
Poids: 768 lignes (24 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

contacts_:: (12 méthodes):
  contacts_()
  read_single_entry()
  read_last_entry()
  read()
  add()
  field_exists()
  add_single_extra_field()
  delete_single_extra_field()
  update()
  change_owner()
  delete_()
  delete_all()


Classe: contacts_  - X-Ref

contacts_($useacl=True)   X-Ref


read_single_entry($id,$fields='')   X-Ref
Pas de description

read_last_entry($fields='')   X-Ref
Pas de description

read($start=0,$limit=0,$fields=null,$query='',$filter='',$sort='',$order='', $lastmod=-1,$cquery='')   X-Ref
Searches for contacts meating certain criteria and evtl. return only a range of them

param: int $start=0 starting number of the range, if $limit != 0
param: int $limit=0 max. number of entries to return, 0=all
param: array $fields=null fields to return or null for all stock fields
param: string $query='' search pattern or '' for none
param: string $filter='' filters with syntax like <name>=<value>,<name2>=<value2> OR <name3>=<value3>,<name4>=!'' for not empty
param: string $sort='' sorting: ASC or DESC
param: string $order='' column to order, default ('') n_family,n_given,email ASC
param: int $lastmod=-1 return only values modified after given timestamp, default (-1) return all
param: string $cquery='' return only entries starting with given character, default ('') all
return: array of contacts

add($owner,$fields,$access=NULL,$cat_id=NULL,$tid=NULL)   X-Ref
Pas de description

field_exists($id,$field_name)   X-Ref
Pas de description

add_single_extra_field($id,$owner,$field_name,$field_value)   X-Ref
Pas de description

delete_single_extra_field($id,$field_name)   X-Ref
Pas de description

update($id,$owner,$fields,$access=NULL,$cat_id=NULL,$tid=NULL)   X-Ref
Pas de description

change_owner($old_owner,$new_owner)   X-Ref
Pas de description

delete_($id)   X-Ref
Pas de description

delete_all($owner=0)   X-Ref
Pas de description



Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7