Application API Documentation

Directional Consulting

Classes

PhpExtension extends AbstractExtension in package

Class PhpExtension extends Twig template functions

Table of Contents

arrayKey()  : mixed
PHP native function - key($var)
arrayValue()  : mixed
PHP native function - array_shift($var)
dateFormat()  : string
PHP native function - DateTime ( $var, DateTimeZone ( $timezone ) )
getFilters()  : array<string|int, mixed>
Gets the array of Twig filters being registered
getHostname()  : string
Public function to return the $_SERVER['SERVER_NAME'] string to Twig Filters
getName()  : string
Gets Name of Twig Extension being registered
isArray()  : bool
PHP native function - is_array($var)
isObject()  : bool
PHP native function - is_object($var)
isString()  : bool
PHP native function - is_string($var)
requestUri()  : string
Public function to return the $_SERVER['REQUEST_URI'] path to Twig Filters

Methods

arrayKey()

PHP native function - key($var)

public arrayKey(array<string|int, mixed> $var) : mixed
Parameters
$var : array<string|int, mixed>
Return values
mixed

arrayValue()

PHP native function - array_shift($var)

public arrayValue(array<string|int, mixed> $var) : mixed
Parameters
$var : array<string|int, mixed>
Return values
mixed

dateFormat()

PHP native function - DateTime ( $var, DateTimeZone ( $timezone ) )

public dateFormat(string $var) : string
Parameters
$var : string
Return values
string

getFilters()

Gets the array of Twig filters being registered

public getFilters() : array<string|int, mixed>
Return values
array<string|int, mixed>

getHostname()

Public function to return the $_SERVER['SERVER_NAME'] string to Twig Filters

public getHostname(mixed $var) : string
Parameters
$var : mixed
Return values
string

getName()

Gets Name of Twig Extension being registered

public getName() : string
Return values
string

isArray()

PHP native function - is_array($var)

public isArray(string|int|array<string|int, mixed>|object $var) : bool
Parameters
$var : string|int|array<string|int, mixed>|object
Return values
bool

isObject()

PHP native function - is_object($var)

public isObject(string|int|array<string|int, mixed>|object $var) : bool
Parameters
$var : string|int|array<string|int, mixed>|object
Return values
bool

isString()

PHP native function - is_string($var)

public isString(string|int|array<string|int, mixed>|object $var) : bool
Parameters
$var : string|int|array<string|int, mixed>|object
Return values
bool

requestUri()

Public function to return the $_SERVER['REQUEST_URI'] path to Twig Filters

public requestUri() : string
Return values
string

        

Search Results

Search results

Found Results