PHP Класс Element_OphCoTherapyapplication_PatientSuitability

The followings are the available columns in table:
Наследование: extends SplitEventTypeElement
Показать файл Открыть проект Примеры использования класса

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

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

Защищенные свойства (Protected)

Свойство Тип Описание
$_available_treatments only want to query list of available treatments once

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

Метод Описание
attributeLabels ( ) : array
calculateAnswers ( $treeData, $answers, null $parent = null, array $textAnswers = [] ) : array traverse the given tree and answers to construct list of questions and answers.
contraindicationsRequired ( ) : boolean if either the left or right treatment requires the contraindications to be provided, returns true. otherwise returns false.
getDecisionTreeAnswersForDisplay ( $side ) : array get the answers for each node in the decision tree (to display).
getDecisionTreeForSide ( string $side ) : OphCoTherapyapplication_DecisionTree get the decision tree for the element side $side.
getInfotext ( ) : string Set the event info text to the current status.
getTreatments ( string $side ) : OphTrIntravitrealinjection_Treatment_Drug[] returns list of treatment for the given side.
isNonCompliant ( string $side = 'both' ) : boolean | null determines if application is non compliant for the given side. If both, returns true if either side is non compliant.
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.
sidedFields ( )
tableName ( ) : string
updateDecisionTreeResponses ( $side, $update_responses )
validateDateNotInFuture ( $attribute ) validate a date is not in the future (assumes that date attributes already converted to mysql date format).

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

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

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

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

traverse the given tree and answers to construct list of questions and answers.
public calculateAnswers ( $treeData, $answers, null $parent = null, array $textAnswers = [] ) : array
$treeData
$answers
$parent null
$textAnswers array
Результат array

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

if either the left or right treatment requires the contraindications to be provided, returns true. otherwise returns false.
public contraindicationsRequired ( ) : boolean
Результат boolean $required

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

get the answers for each node in the decision tree (to display).
public getDecisionTreeAnswersForDisplay ( $side ) : array
$side
Результат array

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

get the decision tree for the element side $side.
public getDecisionTreeForSide ( string $side ) : OphCoTherapyapplication_DecisionTree
$side string
Результат OphCoTherapyapplication_DecisionTree

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

Set the event info text to the current status.
public getInfotext ( ) : string
Результат string

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

returns list of treatment for the given side.
public getTreatments ( string $side ) : OphTrIntravitrealinjection_Treatment_Drug[]
$side string - left or right
Результат OphTrIntravitrealinjection_Treatment_Drug[]

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

returns null for invalid requests
public isNonCompliant ( string $side = 'both' ) : boolean | null
$side string
Результат boolean | null

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

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

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

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

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

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

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

public sidedFields ( )

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

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

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

public updateDecisionTreeResponses ( $side, $update_responses )

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

validate a date is not in the future (assumes that date attributes already converted to mysql date format).
public validateDateNotInFuture ( $attribute )
$attribute - the element attribute that must be an earlier date

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

$_available_treatments защищенное свойство

only want to query list of available treatments once
protected $_available_treatments

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

public $service