FetchController
extends ControllerBase
in package
Fetch controller pulls data from the CEO API
Table of Contents
- articleAction() : mixed
- indexAction() : mixed
- initialize() : mixed
- Initialize response headers
- pageAction() : mixed
- postAction() : mixed
- sectionAction() : mixed
- enableCompatibilityView() : bool
- Enables path to Gryphon compatible view, if the view exists AND enableCompatibility is on.
- getHttpCodeDescription() : mixed
- getJsonData() : array<string|int, mixed>
- Fetch POSTed/PUTed json data
- getRequestSegments() : mixed
- Return rewrite url segments
- terminateWithView() : mixed
- Terminate the action with a view partial. Will dump output directly to browser, but return the action allowing process to continue.
- loadPendingRequest() : mixed
- returnFauxPendingRequest() : mixed
- terminateWithPendingRequest() : mixed
Methods
articleAction()
public
articleAction(mixed $year, mixed $month, mixed $slug) : mixed
Parameters
- $year : mixed
- $month : mixed
- $slug : mixed
Return values
mixed —indexAction()
public
indexAction() : mixed
Return values
mixed —initialize()
Initialize response headers
public
initialize() : mixed
Return values
mixed —pageAction()
public
pageAction(mixed $slug) : mixed
Parameters
- $slug : mixed
Return values
mixed —postAction()
public
postAction(mixed $year, mixed $month, mixed $slug) : mixed
Parameters
- $year : mixed
- $month : mixed
- $slug : mixed
Return values
mixed —sectionAction()
public
sectionAction(mixed $slug) : mixed
Parameters
- $slug : mixed
Return values
mixed —enableCompatibilityView()
Enables path to Gryphon compatible view, if the view exists AND enableCompatibility is on.
protected
enableCompatibilityView(string $view) : bool
NOTE: This will mutate the internal view.
Parameters
- $view : string
Return values
bool —getHttpCodeDescription()
protected
getHttpCodeDescription(mixed $code) : mixed
Parameters
- $code : mixed
Return values
mixed —getJsonData()
Fetch POSTed/PUTed json data
protected
getJsonData() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRequestSegments()
Return rewrite url segments
protected
getRequestSegments([mixed $i = null ]) : mixed
Parameters
- $i : mixed = null
Return values
mixed —either all segments as array, or single segment
terminateWithView()
Terminate the action with a view partial. Will dump output directly to browser, but return the action allowing process to continue.
protected
terminateWithView(string $view[, array<string|int, mixed> $params = [] ][, array<string|int, mixed> $headers = [] ]) : mixed
Parameters
- $view : string
-
path
- $params : array<string|int, mixed> = []
-
view params
- $headers : array<string|int, mixed> = []
-
optional headers
Return values
mixed —loadPendingRequest()
private
loadPendingRequest(mixed $uri) : mixed
Parameters
- $uri : mixed
Return values
mixed —returnFauxPendingRequest()
private
returnFauxPendingRequest(mixed $uri) : mixed
Parameters
- $uri : mixed
Return values
mixed —terminateWithPendingRequest()
private
terminateWithPendingRequest(mixed $uri) : mixed
Parameters
- $uri : mixed