PHP Class OEModule\OphCiExamination\models\OphCiExamination_Attribute

Inheritance: extends BaseActiveRecordVersioned
显示文件 Open project: openeyes/openeyes Class Usage Examples

Protected Properties

Property Type Description
$attribute_options

Public Methods

Method Description
attributeLabels ( )
findAllByElementAndSubspecialty ( integer $element_type_id, integer $subspecialty_id = null, boolean $include_descendents = true ) : OphCiExamination_Attribute[] Fetches all the attributes for an element_type filtered by subspecialty Options are stashed in attribute_options property for easy iteration.
getAttributeOptions ( )
model ( $className = __CLASS__ ) : OphCiExamination_Attribute 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.
tableName ( ) : string

Method Details

attributeLabels() public method

public attributeLabels ( )

findAllByElementAndSubspecialty() public method

Fetches all the attributes for an element_type filtered by subspecialty Options are stashed in attribute_options property for easy iteration.
public findAllByElementAndSubspecialty ( integer $element_type_id, integer $subspecialty_id = null, boolean $include_descendents = true ) : OphCiExamination_Attribute[]
$element_type_id integer
$subspecialty_id integer
$include_descendents boolean
return OphCiExamination_Attribute[]

getAttributeOptions() public method

public getAttributeOptions ( )

model() public static method

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

relations() public method

public relations ( ) : array
return array relational rules.

rules() public method

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

tableName() public method

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

Property Details

$attribute_options protected_oe property

protected $attribute_options