PHP Class MediaData

Author: Damian Mooyman
Inheritance: extends ViewableData, implements IMediaData
ファイルを表示 Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
getBasePath ( ) : string Path to protected file storage.
getPath ( )
model ( $className = __CLASS__ ) : ProtectedFile Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
tableName ( ) : string

Method Details

getBasePath() public static method

Path to protected file storage.
public static getBasePath ( ) : string
return string

getPath() public method

public getPath ( )

model() public static method

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