PHP Класс Bolt\Controller\Async\General

Автор: Gawain Lynch ([email protected])
Автор: Carson Full ([email protected])
Наследование: extends Bolt\Controller\Async\AsyncBase
Показать файл Открыть проект

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

Метод Описание
async ( ) : Symfony\Component\HttpFoundation\JsonResponse Default route binder for asynchronous requests.
changeLogRecord ( string $contenttype, integer $contentid ) : TemplateResponse Generate the change log box for a single record in edit.
dashboardNews ( Request $request ) : TemplateResponse News. Film at 11.
lastModified ( string $contenttypeslug, integer | null $contentid = null ) : TemplateResponse Latest {contenttype} to show a small listing in the sidebars.
latestActivity ( ) : TemplateResponse Get the 'latest activity' for the dashboard.
makeUri ( Request $request ) : string Generate a URI based on request parameters
omnisearch ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Perform an OmniSearch search and return the results.
popularTags ( Request $request, string $taxonomytype ) : Symfony\Component\HttpFoundation\JsonResponse Fetch a JSON encoded set of the most popular taxonomy specific tags.
readme ( string $filename ) : Response Render an extension's README.md file.
tags ( string $taxonomytype ) : Symfony\Component\HttpFoundation\JsonResponse Fetch a JSON encoded set of taxonomy specific tags.

Защищенные методы

Метод Описание
addRoutes ( Silex\ControllerCollection $c )

Приватные методы

Метод Описание
fetchNews ( string $hostname ) : array Get the news from Bolt HQ.
fetchNewsOptions ( string $hostname ) : array Get the guzzle options.
getLastmodifiedByContentLog ( string $contenttypeslug, integer $contentid ) : TemplateResponse Get last modified records from the content log.
getLastmodifiedSimple ( string $contenttypeslug ) : TemplateResponse Only get latest {contenttype} record edits based on date changed.
getNews ( string $hostname ) : array Get the news from Bolt HQ (with caching).

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

addRoutes() защищенный Метод

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

async() публичный Метод

Default route binder for asynchronous requests.
public async ( ) : Symfony\Component\HttpFoundation\JsonResponse
Результат Symfony\Component\HttpFoundation\JsonResponse

changeLogRecord() публичный Метод

Generate the change log box for a single record in edit.
public changeLogRecord ( string $contenttype, integer $contentid ) : TemplateResponse
$contenttype string
$contentid integer
Результат Bolt\Response\TemplateResponse

dashboardNews() публичный Метод

News. Film at 11.
public dashboardNews ( Request $request ) : TemplateResponse
$request Symfony\Component\HttpFoundation\Request
Результат Bolt\Response\TemplateResponse

lastModified() публичный Метод

Latest {contenttype} to show a small listing in the sidebars.
public lastModified ( string $contenttypeslug, integer | null $contentid = null ) : TemplateResponse
$contenttypeslug string
$contentid integer | null
Результат Bolt\Response\TemplateResponse

latestActivity() публичный Метод

Get the 'latest activity' for the dashboard.
public latestActivity ( ) : TemplateResponse
Результат Bolt\Response\TemplateResponse

makeUri() публичный Метод

Generate a URI based on request parameters
public makeUri ( Request $request ) : string
$request Symfony\Component\HttpFoundation\Request
Результат string

omnisearch() публичный Метод

Perform an OmniSearch search and return the results.
public omnisearch ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse

popularTags() публичный Метод

Fetch a JSON encoded set of the most popular taxonomy specific tags.
public popularTags ( Request $request, string $taxonomytype ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
$taxonomytype string
Результат Symfony\Component\HttpFoundation\JsonResponse

readme() публичный Метод

Render an extension's README.md file.
public readme ( string $filename ) : Response
$filename string
Результат Symfony\Component\HttpFoundation\Response

tags() публичный Метод

Fetch a JSON encoded set of taxonomy specific tags.
public tags ( string $taxonomytype ) : Symfony\Component\HttpFoundation\JsonResponse
$taxonomytype string
Результат Symfony\Component\HttpFoundation\JsonResponse