PHP 클래스 Element_OphCoTherapyapplication_PatientSuitability

The followings are the available columns in table:
상속: extends SplitEventTypeElement
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$service

보호된 프로퍼티들

프로퍼티 타입 설명
$_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