PHP Class Gc\View\Model

Inheritance: extends Gc\Db\AbstractTable
ファイルを表示 Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$name string Table name

Public Methods

Method Description
delete ( ) : boolean Delete view model
fromArray ( array $array ) : Model Initiliaze from array
fromId ( integer $viewId ) : Model Initiliaze from id
fromIdentifier ( string $identifier ) : Model Initiliaze from identifier
getContent ( ) : string Return file contents
getFilePath ( ) : string Return file path
init ( integer $id = null ) : Model Initiliaze
save ( ) : integer Save view model

Method Details

delete() public method

Delete view model
public delete ( ) : boolean
return boolean

fromArray() public static method

Initiliaze from array
public static fromArray ( array $array ) : Model
$array array Data
return Model

fromId() public static method

Initiliaze from id
public static fromId ( integer $viewId ) : Model
$viewId integer View id
return Model

fromIdentifier() public static method

Initiliaze from identifier
public static fromIdentifier ( string $identifier ) : Model
$identifier string Identifier
return Model

getContent() public method

Return file contents
public getContent ( ) : string
return string

getFilePath() public method

Return file path
public getFilePath ( ) : string
return string

init() public method

Initiliaze
public init ( integer $id = null ) : Model
$id integer View id
return Model

save() public method

Save view model
public save ( ) : integer
return integer

Property Details

$name protected_oe property

Table name
protected string $name
return string