dolibarr 21.0.0-alpha
|
File of the superclass of object classes that support people. More...
Go to the source code of this file.
Functions | |
getFullName ($langs, $option=0, $nameorder=-1, $maxlen=0) | |
Return full name (civility+' '+name+' '+lastname) | |
setUpperOrLowerCase () | |
Set to upper or ucwords/lower if needed. | |
getFullAddress ($withcountry=0, $sep="\n", $withregion=0, $extralangcode='') | |
Return full address of contact. | |
fetchValuesForExtraLanguages () | |
Function to get alternative languages of a data into $this->array_languages This method is NOT called by method fetch of objects but must be called separately. | |
File of the superclass of object classes that support people.
Definition in file commonpeople.class.php.
|
abstract |
Function to get alternative languages of a data into $this->array_languages This method is NOT called by method fetch of objects but must be called separately.
|
abstract |
Return full address of contact.
int<0,1> | $withcountry 1=Add country into address string | |
string | $sep | Separator to use to build string |
int<0,1> | $withregion 1=Add region into address string | |
string | $extralangcode | User extralanguages as value |
getFullName | ( | $langs, | |
$option = 0, | |||
$nameorder = -1, | |||
$maxlen = 0 ) |
Return full name (civility+' '+name+' '+lastname)
Translate | $langs | Language object for translation of civility (used only if option is 1) |
int | $option | 0=No option, 1=Add civility |
int | $nameorder | -1=Auto, 0=Lastname+Firstname, 1=Firstname+Lastname, 2=Firstname, 3=Firstname if defined else lastname, 4=Lastname, 5=Lastname if defined else firstname |
int | $maxlen | Maximum length |
Definition at line 107 of file commonpeople.class.php.
References dol_string_nohtmltag(), dol_trunc(), dolGetFirstLastname(), and name.
Referenced by Adherent\_load_ldap_info(), Contact\_load_ldap_info(), User\_load_ldap_info(), User\create(), Adherent\getNomUrl(), Contact\getNomUrl(), User\getNomUrl(), WebPortalMember\getNomUrl(), Adherent\getTooltipContentArray(), Contact\getTooltipContentArray(), User\getTooltipContentArray(), Adherent\makeSubstitution(), and Adherent\subscriptionComplementaryActions().
setUpperOrLowerCase | ( | ) |
Set to upper or ucwords/lower if needed.
Definition at line 315 of file commonpeople.class.php.
Referenced by Contact\create(), Societe\create(), User\create(), User\create_from_contact(), User\create_from_member(), Societe\create_individual(), Adherent\update(), Contact\update(), Societe\update(), and User\update().