Extends \MUtil_Registry_TargetAbstract with the ability to create PHP callables by request an existing method using $this->methodName.

package Gems
subpackage Model
copyright Copyright (c) 2011 Erasmus MC
license New BSD License
since Class available since version 1.7.1
inherited_from \Gems_Registry_TargetAbstract

 Methods

__construct()

__construct($model, $data) 

Parameters

$model

$data

Returns a callable if a method is called as a variable

__get(string $name) : Callable
Inherited

Parameters

$name

string

Returns

Callable

__toString()

__toString() 

afterRegistry()

afterRegistry() 

Returns current age or at a given date when supplied

getAge(\MUtil_Date|null $date = NULL) : integer

Parameters

$date

\MUtil_Datenull

Returns

integer

getBirthDate()

getBirthDate() 

getEmail()

getEmail() 

getFirstName()

getFirstName() 

M / F / U

getGender() : string

Returns

string

getGreeting()

getGreeting($language) 

Parameters

$language

getHello()

getHello($language) 

Parameters

$language

getLastName()

getLastName() 

Return string with first and lastname, separated with a space

getName() : string

Returns

string

getRelationId()

getRelationId() 

_getDefaults()

_getDefaults() 

 Properties

 

Holds the data for the current instance

$_data : array

Default

 

Default data, loaded by _getDefaults

$_defaults : array

Default

array()
 

The model this instance is designed for

$_model : \Gems_Model_RespondentRelationModel

Default

 

$loader

$loader : \Gems_Loader

Default