PHP Класс Gc\Layout\Model

Наследование: extends Gc\Db\AbstractTable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$name string Table name

Открытые методы

Метод Описание
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

Описание методов

delete() публичный метод

Delete layout
public delete ( ) : boolean
Результат boolean

fromArray() публичный статический метод

Initiliaze from array
public static fromArray ( array $array ) : Model
$array array Data
Результат Model

fromId() публичный статический метод

Initiliaze from id
public static fromId ( integer $layoutId ) : Model
$layoutId integer Layout id
Результат Model

fromIdentifier() публичный статический метод

Initiliaze from identifier
public static fromIdentifier ( string $identifier ) : Model
$identifier string Identifier
Результат Model

getContent() публичный метод

Return file contents
public getContent ( ) : string
Результат string

getFilePath() публичный метод

Return file path
public getFilePath ( ) : string
Результат string

init() публичный метод

Initiliaze layout
public init ( integer $id = null ) : Model
$id integer Layout id
Результат Model

save() публичный метод

Save layout
public save ( ) : integer
Результат integer

Описание свойств

$name защищенное свойство

Table name
protected string $name
Результат string