PHP Class OphTrOperationbooking_Operation_Booking

The followings are the available columns in table:
Inheritance: extends BaseActiveRecordVersioned
Exibir arquivo Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
attributeLabels ( ) : array
audit ( $target, $action, $data = null, $log = false, $properties = [] )
cancel ( $reason, $cancellation_comment, $reschedule = false )
getCancellationReasonWithComment ( )
getProcedureCount ( ) : integer Pass through convenience function.
getWarningHTML ( $type )
lessThanSessionEndTimeValidate ( ) check if admission time is less than session_end_time.
model ( $className = __CLASS__ ) : the 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.
showWarning ( $type )
tableName ( ) : string

Protected Methods

Method Description
afterSave ( )
afterValidate ( )
beforeValidate ( ) : boolean Ensure display_order is set.
calculateDefaultDisplayOrder ( ) : integer calculate the appropriate default displayorder for this record.

Method Details

afterSave() protected method

protected afterSave ( )

afterValidate() protected method

protected afterValidate ( )

attributeLabels() public method

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

audit() public method

public audit ( $target, $action, $data = null, $log = false, $properties = [] )

beforeValidate() protected method

Ensure display_order is set.
protected beforeValidate ( ) : boolean
return boolean

calculateDefaultDisplayOrder() protected method

calculate the appropriate default displayorder for this record.

cancel() public method

public cancel ( $reason, $cancellation_comment, $reschedule = false )

getCancellationReasonWithComment() public method

getProcedureCount() public method

Pass through convenience function.
public getProcedureCount ( ) : integer
return integer

getWarningHTML() public method

public getWarningHTML ( $type )

lessThanSessionEndTimeValidate() public method

check if admission time is less than session_end_time.

model() public static method

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

showWarning() public method

public showWarning ( $type )

tableName() public method

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