dolibarr  7.0.0-beta
Public Member Functions | List of all members
vCard Class Reference

Class to buld vCard files. More...

Public Member Functions

 setPhoneNumber ($number, $type="")
 mise en forme du numero de telephone More...
 
 setPhoto ($type, $photo)
 mise en forme de la photo warning NON TESTE ! More...
 
 setFormattedName ($name)
 mise en forme du nom formate More...
 
 setName ($family="", $first="", $additional="", $prefix="", $suffix="")
 mise en forme du nom complet More...
 
 setBirthday ($date)
 mise en forme de l'anniversaire More...
 
 setAddress ($postoffice="", $extended="", $street="", $city="", $region="", $zip="", $country="", $type="HOME;POSTAL")
 mise en forme de l'adresse More...
 
 setLabel ($postoffice="", $extended="", $street="", $city="", $region="", $zip="", $country="", $type="HOME;POSTAL")
 mise en forme du label More...
 
 setEmail ($address, $type="internet,pref")
 mise en forme de l'email More...
 
 setNote ($note)
 mise en forme de la note More...
 
 setTitle ($title)
 mise en forme de la fonction More...
 
 setOrg ($org)
 mise en forme de la societe More...
 
 setProdId ($prodid)
 mise en forme du logiciel generateur More...
 
 setUID ($uid)
 mise en forme du logiciel generateur More...
 
 setURL ($url, $type="")
 mise en forme de l'url More...
 
 getVCard ()
 permet d'obtenir une vcard More...
 
 getFileName ()
 permet d'obtenir le nom de fichier More...
 

Detailed Description

Class to buld vCard files.

Definition at line 85 of file vcard.class.php.

Member Function Documentation

vCard::getFileName ( )

permet d'obtenir le nom de fichier

Returns
string Filename

Definition at line 327 of file vcard.class.php.

vCard::getVCard ( )

permet d'obtenir une vcard

Returns
string

Definition at line 307 of file vcard.class.php.

vCard::setAddress (   $postoffice = "",
  $extended = "",
  $street = "",
  $city = "",
  $region = "",
  $zip = "",
  $country = "",
  $type = "HOME;POSTAL" 
)

mise en forme de l'adresse

Parameters
string$postofficePostoffice
string$extendedExtended
string$streetStreet
string$cityCity
string$regionRegion
string$zipZip
string$countryCountry
string$typeType
Returns
void

Definition at line 176 of file vcard.class.php.

References encode().

vCard::setBirthday (   $date)

mise en forme de l'anniversaire

Parameters
timestamp$dateDate
Returns
void

Definition at line 157 of file vcard.class.php.

References dol_print_date().

vCard::setEmail (   $address,
  $type = "internet,pref" 
)

mise en forme de l'email

Parameters
string$addressEMail
string$typeVcard type
Returns
void

Definition at line 223 of file vcard.class.php.

vCard::setFormattedName (   $name)

mise en forme du nom formate

Parameters
string$nameName
Returns
void

Definition at line 129 of file vcard.class.php.

References encode().

Referenced by setName().

vCard::setLabel (   $postoffice = "",
  $extended = "",
  $street = "",
  $city = "",
  $region = "",
  $zip = "",
  $country = "",
  $type = "HOME;POSTAL" 
)

mise en forme du label

Parameters
string$postofficePostoffice
string$extendedExtended
string$streetStreet
string$cityCity
string$regionRegion
string$zipZip
string$countryCountry
string$typeType
Returns
void

Definition at line 203 of file vcard.class.php.

References encode().

vCard::setName (   $family = "",
  $first = "",
  $additional = "",
  $prefix = "",
  $suffix = "" 
)

mise en forme du nom complet

Parameters
string$familyFamily
string$firstFirst
string$additionalAdditionnal
string$prefixPrefix
string$suffixSuffix
Returns
void

Definition at line 144 of file vcard.class.php.

References encode(), and setFormattedName().

vCard::setNote (   $note)

mise en forme de la note

Parameters
string$noteNote
Returns
void

Definition at line 234 of file vcard.class.php.

References encode().

vCard::setOrg (   $org)

mise en forme de la societe

Parameters
string$orgOrg
Returns
void

Definition at line 257 of file vcard.class.php.

References encode().

vCard::setPhoneNumber (   $number,
  $type = "" 
)

mise en forme du numero de telephone

Parameters
int$numbernumero de telephone
string$typeType
Returns
void

Definition at line 101 of file vcard.class.php.

References encode().

vCard::setPhoto (   $type,
  $photo 
)

mise en forme de la photo warning NON TESTE !

Parameters
string$typeType
string$photoPhoto
Returns
void

Definition at line 118 of file vcard.class.php.

vCard::setProdId (   $prodid)

mise en forme du logiciel generateur

Parameters
string$prodidProdid
Returns
void

Definition at line 269 of file vcard.class.php.

References encode().

vCard::setTitle (   $title)

mise en forme de la fonction

Parameters
string$titleTitle
Returns
void

Definition at line 245 of file vcard.class.php.

References $title, and encode().

vCard::setUID (   $uid)

mise en forme du logiciel generateur

Parameters
string$uidUid
Returns
void

Definition at line 281 of file vcard.class.php.

References encode().

vCard::setURL (   $url,
  $type = "" 
)

mise en forme de l'url

Parameters
string$urlURL
string$typeType
Returns
void

Definition at line 294 of file vcard.class.php.


The documentation for this class was generated from the following file: