PHP Class Practice

Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Свойство Type Description
$use_pas

Méthodes publiques

Méthode Description
attributeLabels ( ) : array
behaviors ( )
delete ( ) : boolean Extend parent behaviour to enforce a transaction so that we don't lose commissioning body assignments if the delete fails part way through.
getCommissioningBodyOfType ( CommissioningBodyType $type ) : CommissioningBody get the CommissioningBody of the CommissioningBodyType $type currently assumes there would only ever be one commissioning body of a given type.
getCorrespondenceName ( )
getSalutationName ( )
model ( $className = __CLASS__ ) : Practice Returns the static model of the specified AR class.
noPas ( ) : Practice Suppress PAS integration.
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string

Méthodes protégées

Méthode Description
afterFind ( ) Raise event to allow external data sources to update practice.
beforeDelete ( ) : boolean Delete commissioning body assignments for referential integrity Note if patients are assigned to the practice, there will still be a referential integrity error and the delete will fail.
instantiate ( $attributes ) Pass through use_pas flag to allow pas supression.

Method Details

afterFind() protected méthode

Raise event to allow external data sources to update practice.
See also: CActiveRecord::afterFind()
protected afterFind ( )

attributeLabels() public méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

beforeDelete() protected méthode

Delete commissioning body assignments for referential integrity Note if patients are assigned to the practice, there will still be a referential integrity error and the delete will fail.
protected beforeDelete ( ) : boolean
Résultat boolean

behaviors() public méthode

public behaviors ( )

delete() public méthode

Extend parent behaviour to enforce a transaction so that we don't lose commissioning body assignments if the delete fails part way through.
public delete ( ) : boolean
Résultat boolean

getCommissioningBodyOfType() public méthode

get the CommissioningBody of the CommissioningBodyType $type currently assumes there would only ever be one commissioning body of a given type.
public getCommissioningBodyOfType ( CommissioningBodyType $type ) : CommissioningBody
$type CommissioningBodyType
Résultat CommissioningBody

getCorrespondenceName() public méthode

getSalutationName() public méthode

public getSalutationName ( )

instantiate() protected méthode

Pass through use_pas flag to allow pas supression.
See also: CActiveRecord::instantiate()
protected instantiate ( $attributes )

model() public static méthode

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Practice
Résultat Practice the static model class

noPas() public méthode

Suppress PAS integration.
public noPas ( ) : Practice
Résultat Practice

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name

Property Details

$use_pas public_oe property

public $use_pas