PHP Class ContactLocation

The followings are the available columns in table 'contact_location':
Inheritance: extends BaseActiveRecordVersioned
Show file Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
__toString ( ) : string
attributeLocations ( ) : array
behaviors ( )
getLetterAddress ( unknown $params = [] ) : array() gets a letter address for this contact location.
getLetterArray ( $include_country )
getPatients ( )
model ( $className = __CLASS__ ) : ContactLocation Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string

Method Details

__toString() public method

public __toString ( ) : string
return string

attributeLocations() public method

public attributeLocations ( ) : array
return array customized attribute locations (name=>location)

behaviors() public method

public behaviors ( )

getLetterAddress() public method

gets a letter address for this contact location.
public getLetterAddress ( unknown $params = [] ) : array()
$params unknown
return array()

getLetterArray() public method

public getLetterArray ( $include_country )

getPatients() public method

public getPatients ( )

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : ContactLocation
return ContactLocation the static model class

relations() public method

public relations ( ) : array
return array relational rules.

rules() public method

public rules ( ) : array
return array validation rules for model attributes.

tableName() public method

public tableName ( ) : string
return string the associated database table name