Documentation

IndexController extends ControllerBase
in package

Default index controller

Table of Contents

beaconAction()  : mixed
Responds to beacon tracking load call. This is generally not a user definable call, but can be responded to. This is part of the javascript pipeline. Responds to the following URL:
blockerAction()  : mixed
Supports Ad Blocker detection
checkAction()  : mixed
embedAction()  : mixed
imgswapAction()  : mixed
indexAction()  : mixed
Site index, responds to the following URL:
infoAction()  : mixed
initialize()  : mixed
Initialize response headers
styleAction()  : mixed
uuidAction()  : 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.
_indexCompat()  : mixed

Methods

beaconAction()

Responds to beacon tracking load call. This is generally not a user definable call, but can be responded to. This is part of the javascript pipeline. Responds to the following URL:

public beaconAction() : mixed
  • b/e.js

Returns the following items to the view:

  • fingerprint - user fingerprint
  • ref - referencing url

Looks for templates in the following order:

  • global-partials/_beacon.js.twig

It will also increment the hit counter for the given resource.

Return values
mixed

blockerAction()

Supports Ad Blocker detection

public blockerAction() : mixed
Return values
mixed

embedAction()

public embedAction(mixed $uuid) : mixed
Parameters
$uuid : mixed
Return values
mixed

imgswapAction()

public imgswapAction() : mixed
Return values
mixed

indexAction()

Site index, responds to the following URL:

public indexAction() : mixed
  • /

Returns the following items to the view:

  • articles - In compatibility mode
  • section - In compatibility mode

Looks for templates in the following order:

  • gryphon/main/main.tpl - COMPATIBILITY MODE
  • index/index.twig
Return values
mixed

initialize()

Initialize response headers

public initialize() : 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

_indexCompat()

private _indexCompat() : mixed
Return values
mixed

Search results