PHP Class Period

Author: Magnus Rosenbaum ([email protected])
Inheritance: extends Relation
Show file Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
__toString ( )
model ( $className = __CLASS__ ) : Period Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
tableName ( ) : string

Method Details

__toString() public method

public __toString ( )

model() public static method

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