PHP 클래스 Backend\Modules\ContentBlocks\Engine\Model

사용 중단: This isn't needed anymore by switching to doctrine.
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
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