PHP 클래스 Devise\Templates\TemplatesCleaner

파일 보기 프로젝트 열기: devisephp/cms

공개 메소드들

메소드 설명
__construct ( PagesRepository $PagesRepository, DataBuilder $DataBuilder ) Construct a new template manager
clearTemplateFields ( string $templateName ) : void removes all fields and collection from database

비공개 메소드들

메소드 설명
deleteCollectionInstances ( array $collectionInstanceIds ) deletes all collection_instances with ids
deleteCollections ( array $collectionIds ) deletes all collections with ids
deleteFields ( array $fieldIds ) deletes all fields with ids
fakeAPageRender ( string $view ) takea view name, finds a route that uses the view runds databuilder, and renders the view as if it were being returned in a route
getActiveKeys ( ) takea view name, finds a route that uses the view runds databuilder, and renders the view as if it were being returned in a route
getAllLivePageVersionIds ( string $view ) query to get all live page version ids
getIdsToDelete ( string $view, array $keys, integer $liveVersionId ) builds an array of ids that need to be deleted
keySearch ( array &$keys, array $data ) recursively loops through data to find keys that equal "key" and adds those to the $keys array

메소드 상세

__construct() 공개 메소드

Construct a new template manager
public __construct ( PagesRepository $PagesRepository, DataBuilder $DataBuilder )
$PagesRepository Devise\Pages\PagesRepository
$DataBuilder Devise\Pages\Viewvars\DataBuilder

clearTemplateFields() 공개 메소드

removes all fields and collection from database
public clearTemplateFields ( string $templateName ) : void
$templateName string
리턴 void