PHP Класс Practice

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$use_pas

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Описание методов

afterFind() защищенный Метод

Raise event to allow external data sources to update practice.
См. также: CActiveRecord::afterFind()
protected afterFind ( )

attributeLabels() публичный Метод

public attributeLabels ( ) : array
Результат array customized attribute labels (name=>label)

beforeDelete() защищенный Метод

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
Результат boolean

behaviors() публичный Метод

public behaviors ( )

delete() публичный Метод

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
Результат boolean

getCommissioningBodyOfType() публичный Метод

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
Результат CommissioningBody

getCorrespondenceName() публичный Метод

getSalutationName() публичный Метод

public getSalutationName ( )

instantiate() защищенный Метод

Pass through use_pas flag to allow pas supression.
См. также: CActiveRecord::instantiate()
protected instantiate ( $attributes )

model() публичный статический Метод

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Practice
Результат Practice the static model class

noPas() публичный Метод

Suppress PAS integration.
public noPas ( ) : Practice
Результат Practice

relations() публичный Метод

public relations ( ) : array
Результат array relational rules.

rules() публичный Метод

public rules ( ) : array
Результат array validation rules for model attributes.

tableName() публичный Метод

public tableName ( ) : string
Результат string the associated database table name

Описание свойств

$use_pas публичное свойство

public $use_pas