PHP Class Element_OphTrIntravitrealinjection_Treatment

The followings are the available columns in table:
Inheritance: extends SplitEventTypeElement
ファイルを表示 Open project: openeyes/openeyes Class Usage Examples

Public Properties

Property Type Description
$service

Public Methods

Method Description
attributeLabels ( ) : array
getInfoText ( ) : string returns information text summarising the event (eye and drug used).
getIopLoweringDrugValues ( ) Get ids of IOP lowering drugs currently associated with the element.
model ( $className = __CLASS__ ) : the Returns the static model of the specified AR class.
relations ( ) : array
requiredIfBoolean ( $attribute, $params )
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
setDefaultOptions ( ) (non-PHPdoc).
sidedFields ( )
tableName ( ) : string
todayOrFutureValidation ( string $attribute, array $params ) checks if the given attribute on the element is today or in the future.
todayOrFutureValidationIfSide ( string $attribute, array $params ) wrapper around the todayOrFutureValidation that only checks the attribute if the element is for the given side.
typeIfSide ( $attribute, $params )
updateIOPLoweringDrugs ( string $side, boolean $is_pre = true, int[] $ioplowering_ids = [] ) update the ioplowering assignments for the given side and stage.

Protected Methods

Method Description
afterSave ( )
beforeSave ( )
beforeValidate ( ) clear out sided fields to prevent validation of irrelevant data.

Method Details

afterSave() protected method

protected afterSave ( )

attributeLabels() public method

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

beforeSave() protected method

protected beforeSave ( )

beforeValidate() protected method

(non-PHPdoc)
See also: CModel::beforeValidate()
protected beforeValidate ( )

getInfoText() public method

returns information text summarising the event (eye and drug used).
public getInfoText ( ) : string
return string $info_text

getIopLoweringDrugValues() public method

Get ids of IOP lowering drugs currently associated with the element.

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.

requiredIfBoolean() public method

public requiredIfBoolean ( $attribute, $params )

rules() public method

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

setDefaultOptions() public method

(non-PHPdoc).
See also: SplitEventTypeElement::setDefaultOptions()
public setDefaultOptions ( )

sidedFields() public method

public sidedFields ( )

tableName() public method

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

todayOrFutureValidation() public method

checks if the given attribute on the element is today or in the future.
public todayOrFutureValidation ( string $attribute, array $params )
$attribute string
$params array

todayOrFutureValidationIfSide() public method

wrapper around the todayOrFutureValidation that only checks the attribute if the element is for the given side.
public todayOrFutureValidationIfSide ( string $attribute, array $params )
$attribute string
$params array

typeIfSide() public method

public typeIfSide ( $attribute, $params )

updateIOPLoweringDrugs() public method

update the ioplowering assignments for the given side and stage.
public updateIOPLoweringDrugs ( string $side, boolean $is_pre = true, int[] $ioplowering_ids = [] )
$side string
$is_pre boolean
$ioplowering_ids int[] - array of ioplowering ids to assign to the element

Property Details

$service public_oe property

public $service