PHP Class SettingMetadata

The followings are the available columns in table 'setting_metadata':
Inheritance: extends BaseActiveRecordVersioned
Mostra file Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
attributeLabels ( ) : array
getSetting ( $key = null, $element_type = null, $return_object = false )
getSettingName ( $key = null )
model ( $className = __CLASS__ ) : SettingMetadata Returns the static model of the specified AR class.
parseSetting ( $setting, $metadata )
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string

Protected Methods

Method Description
getSettingValue ( $model, $key, $condition_field, $condition_value, $element_type )

Method Details

attributeLabels() public method

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

getSetting() public method

public getSetting ( $key = null, $element_type = null, $return_object = false )

getSettingName() public method

public getSettingName ( $key = null )

getSettingValue() protected method

protected getSettingValue ( $model, $key, $condition_field, $condition_value, $element_type )

model() public static method

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

parseSetting() public method

public parseSetting ( $setting, $metadata )

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