User::get - jcobban/Genealogy GitHub Wiki
$user->get($fieldname)
Up: class User
This gets the current value of the identified field. It has one parameter:
parameter | description |
---|---|
$field | The field name is case insensitive and may be a synonym defined to facilitate readability. Late static binding is used so this method takes advantage of field name definitions in the derived class. The field name may also be a temporary field defined by assigning a value to it in the set method. This method creates a trace entry if the field name does not correspond to any field in the record and debugging is enabled. |
It overloads the base implementation as follows:
field name | description |
---|---|
'id' | The id field is managed by the database server. If the current record does not exist in the database this returns null . Use of this field is deprecated because both 'username' and 'email' are external unique keys. |
'usemail' | returns a non-zero value if the corresponding bit in 'options' is non-zero, otherwise zero. |
'password' | always returns null . There is no way to get the plain text of the password. |
This method returns the current value of the field. This method returns null
if the field name does not correspond to any field in the record, and generates a warning message.
Next: $user->getId()