PHP Class ContactBehavior

(C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 (C) OpenEyes Foundation, 2011-2013 This file is part of OpenEyes. OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see .
Author: OpenEyes ([email protected])
Inheritance: extends CActiveRecordBehavior
Datei anzeigen Open project: openeyes/openeyes

Public Methods

Method Description
addAddress ( $address )
afterDelete ( $event )
beforeSave ( $event )
getFullName ( )
getLetterAddress ( $params = [] )
getLetterIntroduction ( $params = [] )
getMetadata ( $key )
getPrefix ( ) * this can be overridden by models that use this behavior
getReversedFullName ( )
getSalutationName ( )
isDeceased ( )
setMetadata ( $key, $value )

Protected Methods

Method Description
formatLetterAddress ( $contact, $address, $params = [] )

Method Details

addAddress() public method

public addAddress ( $address )

afterDelete() public method

public afterDelete ( $event )

beforeSave() public method

public beforeSave ( $event )

formatLetterAddress() protected method

protected formatLetterAddress ( $contact, $address, $params = [] )

getFullName() public method

public getFullName ( )

getLetterAddress() public method

public getLetterAddress ( $params = [] )

getLetterIntroduction() public method

public getLetterIntroduction ( $params = [] )

getMetadata() public method

public getMetadata ( $key )

getPrefix() public method

* this can be overridden by models that use this behavior
public getPrefix ( )

getReversedFullName() public method

public getReversedFullName ( )

getSalutationName() public method

public getSalutationName ( )

isDeceased() public method

public isDeceased ( )

setMetadata() public method

public setMetadata ( $key, $value )