PHP Class Bolt\Controller\Async\General

Author: Gawain Lynch ([email protected])
Author: Carson Full ([email protected])
Inheritance: extends Bolt\Controller\Async\AsyncBase
Show file Open project: bolt/bolt

Public Methods

Method Description
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.

Protected Methods

Method Description
addRoutes ( Silex\ControllerCollection $c )

Private Methods

Method Description
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).

Method Details

addRoutes() protected method

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

async() public method

Default route binder for asynchronous requests.
public async ( ) : Symfony\Component\HttpFoundation\JsonResponse
return Symfony\Component\HttpFoundation\JsonResponse

changeLogRecord() public method

Generate the change log box for a single record in edit.
public changeLogRecord ( string $contenttype, integer $contentid ) : TemplateResponse
$contenttype string
$contentid integer
return Bolt\Response\TemplateResponse

dashboardNews() public method

News. Film at 11.
public dashboardNews ( Request $request ) : TemplateResponse
$request Symfony\Component\HttpFoundation\Request
return Bolt\Response\TemplateResponse

lastModified() public method

Latest {contenttype} to show a small listing in the sidebars.
public lastModified ( string $contenttypeslug, integer | null $contentid = null ) : TemplateResponse
$contenttypeslug string
$contentid integer | null
return Bolt\Response\TemplateResponse

latestActivity() public method

Get the 'latest activity' for the dashboard.
public latestActivity ( ) : TemplateResponse
return Bolt\Response\TemplateResponse

makeUri() public method

Generate a URI based on request parameters
public makeUri ( Request $request ) : string
$request Symfony\Component\HttpFoundation\Request
return string

omnisearch() public method

Perform an OmniSearch search and return the results.
public omnisearch ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\JsonResponse

popularTags() public method

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
return Symfony\Component\HttpFoundation\JsonResponse

readme() public method

Render an extension's README.md file.
public readme ( string $filename ) : Response
$filename string
return Symfony\Component\HttpFoundation\Response

tags() public method

Fetch a JSON encoded set of taxonomy specific tags.
public tags ( string $taxonomytype ) : Symfony\Component\HttpFoundation\JsonResponse
$taxonomytype string
return Symfony\Component\HttpFoundation\JsonResponse