PHP Class Gc\Layout\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 layout
fromArray ( array $array ) : Model Initiliaze from array
fromId ( integer $layoutId ) : 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 layout
save ( ) : integer Save layout

Method Details

delete() public method

Delete layout
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 $layoutId ) : Model
$layoutId integer Layout 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 layout
public init ( integer $id = null ) : Model
$id integer Layout id
return Model

save() public method

Save layout
public save ( ) : integer
return integer

Property Details

$name protected_oe property

Table name
protected string $name
return string