PHP Class UniqueCodes

The followings are the available columns in table 'unique_codes':
Inheritance: extends BaseActiveRecord
Mostrar archivo Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
attributeLabels ( ) : array
behaviors ( )
defaultScope ( )
eventFromUniqueCode ( $code ) : CActiveRecord
examinationEventCheckFromUniqueCode ( $code )
getEpisodeIdFromCode ( $code )
getEventFromEpisode ( $episode_id, $event_type_id )
model ( $className = __CLASS__ ) : UniqueCodes 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 ( ) : array
return array customized attribute labels (name=>label)

behaviors() public method

public behaviors ( )

defaultScope() public method

public defaultScope ( )

eventFromUniqueCode() public method

public eventFromUniqueCode ( $code ) : CActiveRecord
$code
return CActiveRecord

examinationEventCheckFromUniqueCode() public method

getEpisodeIdFromCode() public method

public getEpisodeIdFromCode ( $code )

getEventFromEpisode() public method

public getEventFromEpisode ( $episode_id, $event_type_id )

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : UniqueCodes
return UniqueCodes 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