PHP Class Element_OphCoTherapyapplication_ExceptionalCircumstances

The followings are the available columns in table:
Inheritance: extends SplitEventTypeElement
Afficher le fichier Open project: openeyes/openeyes

Méthodes publiques

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

Protected Properties

Свойство Type Description
$auto_update_relations
$relation_defaults

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
afterSave ( )
afterValidate ( )
beforeSave ( )
beforeValidate ( )

Method Details

afterSave() protected méthode

protected afterSave ( )

afterValidate() protected méthode

protected afterValidate ( )

attributeLabels() public méthode

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

beforeSave() protected méthode

protected beforeSave ( )

beforeValidate() protected méthode

protected beforeValidate ( )

getDeviationReasonsForSide() public méthode

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
Résultat OphCoTherapyapplication_ExceptionalCircumstances_DeviationReason[]

getFileCollectionValuesForSide() public méthode

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

getStandardInterventionsForSide() public méthode

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

getStartPeriodsForSide() public méthode

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

isRequiredInUI() public méthode

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
Résultat boolean

model() public static méthode

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

needDeviationReasonForSide() public méthode

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

relations() public méthode

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

requiredIfPatientFactors() public méthode

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

requiredIfStandardInterventionDoesNotExists() public méthode

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

requiredIfStandardInterventionExists() public méthode

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 méthode

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 méthode

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 méthode

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

sidedFields() public méthode

public sidedFields ( )

tableName() public méthode

public tableName ( ) : string
Résultat 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