PHP Class Gc\Layout\Model

Inheritance: extends Gc\Db\AbstractTable
Afficher le fichier Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Свойство Type Description
$name string Table name

Méthodes publiques

Méthode 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 méthode

Delete layout
public delete ( ) : boolean
Résultat boolean

fromArray() public static méthode

Initiliaze from array
public static fromArray ( array $array ) : Model
$array array Data
Résultat Model

fromId() public static méthode

Initiliaze from id
public static fromId ( integer $layoutId ) : Model
$layoutId integer Layout id
Résultat Model

fromIdentifier() public static méthode

Initiliaze from identifier
public static fromIdentifier ( string $identifier ) : Model
$identifier string Identifier
Résultat Model

getContent() public méthode

Return file contents
public getContent ( ) : string
Résultat string

getFilePath() public méthode

Return file path
public getFilePath ( ) : string
Résultat string

init() public méthode

Initiliaze layout
public init ( integer $id = null ) : Model
$id integer Layout id
Résultat Model

save() public méthode

Save layout
public save ( ) : integer
Résultat integer

Property Details

$name protected_oe property

Table name
protected string $name
Résultat string