Packages » Package freeform » Class User » Method getProperty

Method User::getProperty

Declaration:
<? abstract public mixed getProperty(string $keymixed $defValue null?>

Declared in:
User

Description:
Get a particular property of the user (or the user's profile). This method is designed to be the general contract of quering different user details for different possible user system implementations.

Parameters:
  • string $key
    the property name
  • mixed $defValue
    the value to return if no such property exist

Returns:
mixed the property value $defValue