PHP 클래스 Bolt\Controller\Backend\General

Prior to v3.0 this functionality primarily existed in the monolithic Bolt\Controllers\Backend class.
저자: Gawain Lynch ([email protected])
상속: extends BackendBase
파일 보기 프로젝트 열기: bolt/bolt

공개 메소드들

메소드 설명
about ( ) : TemplateResponse About page route.
checks ( ) : TemplateResponse Configuration checks/tests route.
clearCache ( ) : TemplateResponse Clear the cache.
dashboard ( ) : TemplateResponse Dashboard or 'root' route.
omnisearch ( Request $request ) : TemplateResponse Show the Omnisearch results.
prefill ( Request $request ) : TemplateResponse | RedirectResponse Generate Lorem Ipsum records in the database for given Contenttypes.
translation ( Request $request, string $domain, string $tr_locale ) : TemplateResponse | RedirectResponse Prepare/edit/save a translation.

보호된 메소드들

메소드 설명
addRoutes ( Silex\ControllerCollection $c )

비공개 메소드들

메소드 설명
getLatest ( integer $limit = null ) : array Get the latest records for viewable contenttypes that a user has access to.
getTranslationData ( array &$tr ) : string Get the translation data.
saveTranslationFile ( string $contents, array &$tr ) : boolean | RedirectResponse Attempt to save the POST data for a translation file edit.

메소드 상세

about() 공개 메소드

About page route.
public about ( ) : TemplateResponse
리턴 Bolt\Response\TemplateResponse

addRoutes() 보호된 메소드

protected addRoutes ( Silex\ControllerCollection $c )
$c Silex\ControllerCollection

checks() 공개 메소드

Configuration checks/tests route.
public checks ( ) : TemplateResponse
리턴 Bolt\Response\TemplateResponse

clearCache() 공개 메소드

Clear the cache.
public clearCache ( ) : TemplateResponse
리턴 Bolt\Response\TemplateResponse

dashboard() 공개 메소드

Dashboard or 'root' route.
public dashboard ( ) : TemplateResponse
리턴 Bolt\Response\TemplateResponse

omnisearch() 공개 메소드

Show the Omnisearch results.
public omnisearch ( Request $request ) : TemplateResponse
$request Symfony\Component\HttpFoundation\Request The Symfony Request
리턴 Bolt\Response\TemplateResponse

prefill() 공개 메소드

Generate Lorem Ipsum records in the database for given Contenttypes.
public prefill ( Request $request ) : TemplateResponse | RedirectResponse
$request Symfony\Component\HttpFoundation\Request The Symfony Request
리턴 Bolt\Response\TemplateResponse | Symfony\Component\HttpFoundation\RedirectResponse

translation() 공개 메소드

Prepare/edit/save a translation.
public translation ( Request $request, string $domain, string $tr_locale ) : TemplateResponse | RedirectResponse
$request Symfony\Component\HttpFoundation\Request The Symfony Request
$domain string The domain
$tr_locale string The translation locale
리턴 Bolt\Response\TemplateResponse | Symfony\Component\HttpFoundation\RedirectResponse