PHP Class Element_OphCoTherapyapplication_ExceptionalCircumstances

The followings are the available columns in table:
Inheritance: extends SplitEventTypeElement
Exibir arquivo Open project: openeyes/openeyes

Public Properties

Property Type Description
$service

Protected Properties

Property Type Description
$auto_update_relations
$relation_defaults

Public Methods

Method Description
attributeLabels ( ) : array
getDeviationReasonsForSide ( stringh $side ) : OphCoTherapyapplication_ExceptionalCircumstances_DeviationReason[] get the possible deviation reasons for the side (encapsulated to ensure we get any reasons that may no longer be enabled).
getFileCollectionValuesForSide ( $side ) Get ids of the file collections in use by the element for a given side.
getStandardInterventionsForSide ( string $side ) : OphCoTherapyapplication_ExceptionalCircumstances_StandardIntervention[] get list of valid standard interventions for this element on the given side.
getStartPeriodsForSide ( type $side ) : type get the valid stat periods for the given side.
isRequiredInUI ( ) : boolean Is this a required element to be displayed in the UI? This element is not required by default, but we still want to prevent users from removing it in the UI.
model ( $className = __CLASS__ ) : the Returns the static model of the specified AR class.
needDeviationReasonForSide ( string $side ) : boolean Returns whether we need to the deviation reason to be populated for the given side.
relations ( ) : array
requiredIfPatientFactors ( string $attribute, array $params )
requiredIfStandardInterventionDoesNotExists ( $attribute, $params ) * requirement validation if a standard intervention does not exist
requiredIfStandardInterventionExists ( string $attribute, array $params ) check that the standard intervention description is given if the element is flagged appropriately.
requiredIfStandardInterventionNotUsed ( string $attribute, array $params ) validates attribute if there is standard intervention and it is not being used.
requiredIfUrgent ( string $attribute, array $params ) validation of an attribute if the $side start_period is flagged as urgent.
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
sidedFields ( )
tableName ( ) : string

Protected Methods

Method Description
afterSave ( )
afterValidate ( )
beforeSave ( )
beforeValidate ( )

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)

beforeSave() protected method

protected beforeSave ( )

beforeValidate() protected method

protected beforeValidate ( )

getDeviationReasonsForSide() public method

get the possible deviation reasons for the side (encapsulated to ensure we get any reasons that may no longer be enabled).
public getDeviationReasonsForSide ( stringh $side ) : OphCoTherapyapplication_ExceptionalCircumstances_DeviationReason[]
$side stringh
return OphCoTherapyapplication_ExceptionalCircumstances_DeviationReason[]

getFileCollectionValuesForSide() public method

Get ids of the file collections in use by the element for a given side.

getStandardInterventionsForSide() public method

get list of valid standard interventions for this element on the given side.
public getStandardInterventionsForSide ( string $side ) : OphCoTherapyapplication_ExceptionalCircumstances_StandardIntervention[]
$side string
return OphCoTherapyapplication_ExceptionalCircumstances_StandardIntervention[]

getStartPeriodsForSide() public method

get the valid stat periods for the given side.
public getStartPeriodsForSide ( type $side ) : type
$side type
return type

isRequiredInUI() public method

Is this a required element to be displayed in the UI? This element is not required by default, but we still want to prevent users from removing it in the UI.
public isRequiredInUI ( ) : boolean
return boolean

model() public static method

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

needDeviationReasonForSide() public method

Returns whether we need to the deviation reason to be populated for the given side.
public needDeviationReasonForSide ( string $side ) : boolean
$side string
return boolean

relations() public method

public relations ( ) : array
return array relational rules.

requiredIfPatientFactors() public method

public requiredIfPatientFactors ( string $attribute, array $params )
$attribute string
$params array

requiredIfStandardInterventionDoesNotExists() public method

* requirement validation if a standard intervention does not exist
public requiredIfStandardInterventionDoesNotExists ( $attribute, $params )

requiredIfStandardInterventionExists() public method

check that the standard intervention description is given if the element is flagged appropriately.
public requiredIfStandardInterventionExists ( string $attribute, array $params )
$attribute string
$params array

requiredIfStandardInterventionNotUsed() public method

validates attribute if there is standard intervention and it is not being used.
public requiredIfStandardInterventionNotUsed ( string $attribute, array $params )
$attribute string
$params array

requiredIfUrgent() public method

validation of an attribute if the $side start_period is flagged as urgent.
public requiredIfUrgent ( string $attribute, array $params )
$attribute string
$params array

rules() public method

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

sidedFields() public method

public sidedFields ( )

tableName() public method

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

Property Details

$auto_update_relations protected_oe property

protected $auto_update_relations

$relation_defaults protected_oe property

protected $relation_defaults

$service public_oe property

public $service