PHP Класс Backend\Modules\ContentBlocks\Engine\Model

Устаревший: This isn't needed anymore by switching to doctrine.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
copy ( string $from, string $to ) : array Copy content blocks
delete ( integer $id ) Delete an item.
exists ( integer $id, boolean $activeOnly = true ) : boolean Does the item exist.
get ( integer $id ) : array Get all data for a given id.
getMaximumId ( ) : integer Get the maximum id.
getRevision ( integer $id, integer $revisionId ) : array Get all data for a given revision.
getTemplates ( ) : array Get templates.
insert ( array $item ) : integer Add a new item.
update ( array $item ) : integer Update an existing item.

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

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

Copy content blocks
Устаревший: use the CopyContentBlocksToOtherLocale command
public static copy ( string $from, string $to ) : array
$from string The language code to copy the content blocks from.
$to string The language code we want to copy the content blocks to.
Результат array

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

Delete an item.
Устаревший: use doctrine instead
public static delete ( integer $id )
$id integer The id of the record to delete.

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

Does the item exist.
Устаревший: use doctrine instead
public static exists ( integer $id, boolean $activeOnly = true ) : boolean
$id integer The id of the record to check for existence.
$activeOnly boolean Only check in active items?
Результат boolean

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

Get all data for a given id.
Устаревший: use doctrine instead
public static get ( integer $id ) : array
$id integer The id for the record to get.
Результат array

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

Get the maximum id.
Устаревший:
public static getMaximumId ( ) : integer
Результат integer

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

Get all data for a given revision.
Устаревший: use doctrine instead
public static getRevision ( integer $id, integer $revisionId ) : array
$id integer The Id for the item wherefore you want a revision.
$revisionId integer The Id of the revision.
Результат array

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

Get templates.
Устаревший: moved to the FormType
public static getTemplates ( ) : array
Результат array

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

Add a new item.
Устаревший: use doctrine instead
public static insert ( array $item ) : integer
$item array The data to insert.
Результат integer

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

Update an existing item.
Устаревший: use doctrine instead
public static update ( array $item ) : integer
$item array The new data.
Результат integer