PHP Class Procedure

Inheritance: extends DataObjectBase
Mostrar archivo Open project: openeyes/openeyes Class Usage Examples

Protected Properties

Property Type Description
$auto_update_relations

Public Methods

Method Description
__get ( string $prop ) : mixed | null
__isset ( string $prop ) : boolean
attributeLabels ( ) : array
behaviors ( )
getList ( string $term, string $restrict = null ) : array Get a list of procedures.
getListBySubspecialty ( $subspecialtyId, boolean $restrict = false ) : array
getProceduresByOpNote ( $opNoteElementId ) : array
model ( $className = __CLASS__ ) : Procedure 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
validateOpNotes ( $attribute, $params )

Protected Methods

Method Description
addOpNoteElementRelation ( )
afterConstruct ( ) Add relation to OphTrOperationnote_ProcedureListOperationElement if it exists.
afterFind ( ) Add relation to OphTrOperationnote_ProcedureListOperationElement if it exists.
get_has_benefits ( ) : boolean
get_has_complications ( ) : boolean

Method Details

__get() public method

public __get ( string $prop ) : mixed | null
$prop string
return mixed | null

__isset() public method

public __isset ( string $prop ) : boolean
$prop string
return boolean

addOpNoteElementRelation() protected method

protected addOpNoteElementRelation ( )

afterConstruct() protected method

Add relation to OphTrOperationnote_ProcedureListOperationElement if it exists.
protected afterConstruct ( )

afterFind() protected method

Add relation to OphTrOperationnote_ProcedureListOperationElement if it exists.
protected afterFind ( )

attributeLabels() public method

public attributeLabels ( ) : array
return array customized attribute labels (name=>label)

behaviors() public method

public behaviors ( )

getList() public static method

Get a list of procedures.
public static getList ( string $term, string $restrict = null ) : array
$term string term to search by
$restrict string Set to 'booked' or 'unbooked' to restrict results to procedures of that type
return array

getListBySubspecialty() public method

public getListBySubspecialty ( $subspecialtyId, boolean $restrict = false ) : array
$subspecialtyId
$restrict boolean
return array

getProceduresByOpNote() public method

public getProceduresByOpNote ( $opNoteElementId ) : array
$opNoteElementId
return array

get_has_benefits() protected method

protected get_has_benefits ( ) : boolean
return boolean

get_has_complications() protected method

protected get_has_complications ( ) : boolean
return boolean

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Procedure
return Procedure 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

validateOpNotes() public method

public validateOpNotes ( $attribute, $params )

Property Details

$auto_update_relations protected_oe property

protected $auto_update_relations