dolibarr 20.0.0
commonpeople.class.php File Reference

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.
 

Variables

trait CommonPeople
 Support class for thirdparties, contacts, members, users or resources.
 

Detailed Description

File of the superclass of object classes that support people.

Definition in file commonpeople.class.php.

Function Documentation

◆ getFullName()

getFullName ( $langs,
$option = 0,
$nameorder = -1,
$maxlen = 0 )

Return full name (civility+' '+name+' '+lastname)

Parameters
Translate$langsLanguage object for translation of civility (used only if option is 1)
int$option0=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$maxlenMaximum length
Returns
string String with full name

Definition at line 73 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()

setUpperOrLowerCase ( )