class HelperSet implements ArrayAccess, Countable, IteratorAggregate (View source)

Class HelperSet

Methods

__construct(AbstractView $view)

HelperSet constructor.

__get(string $name)

__get

bool
__isset(string $key)

__isset

void
__set(string $name, AbstractHelper $value)

__set

static void
addNamespace(string $namespace)

addNamespace

static void
setNamespaces(array $namespaces)

setNamespaces

addHelper(string $name, object $helper)

addHelper

getHelper(string $name)

getHelper

getView()

Method to get property View

setView(AbstractView $view)

Method to set property view

getIterator()

Retrieve an external iterator

boolean
offsetExists(mixed $offset)

Whether a offset exists

mixed
offsetGet(mixed $offset)

Offset to retrieve

void
offsetSet(mixed $offset, mixed $value)

Offset to set

void
offsetUnset(mixed $offset)

Offset to unset

int
count()

Count elements of an object

Details

at line line 48
__construct(AbstractView $view)

HelperSet constructor.

Parameters

AbstractView $view

at line line 60
AbstractHelper __get(string $name)

__get

Parameters

string $name

Return Value

AbstractHelper

at line line 72
bool __isset(string $key)

__isset

Parameters

string $key

Return Value

bool

at line line 85
void __set(string $name, AbstractHelper $value)

__set

Parameters

string $name
AbstractHelper $value

Return Value

void

at line line 140
static void addNamespace(string $namespace)

addNamespace

Parameters

string $namespace

Return Value

void

at line line 152
static void setNamespaces(array $namespaces)

setNamespaces

Parameters

array $namespaces

Return Value

void

at line line 165
HelperSet addHelper(string $name, object $helper)

addHelper

Parameters

string $name
object $helper

Return Value

HelperSet

at line line 179
AbstractHelper getHelper(string $name)

getHelper

Parameters

string $name

Return Value

AbstractHelper

at line line 201
AbstractView getView()

Method to get property View

Return Value

AbstractView

at line line 213
HelperSet setView(AbstractView $view)

Method to set property view

Parameters

AbstractView $view

Return Value

HelperSet Return self to support chaining.

at line line 225
Traversable getIterator()

Retrieve an external iterator

Return Value

Traversable An instance of an object implementing Iterator

at line line 237
boolean offsetExists(mixed $offset)

Whether a offset exists

Parameters

mixed $offset An offset to check for.

Return Value

boolean true on success or false on failure.

at line line 249
mixed offsetGet(mixed $offset)

Offset to retrieve

Parameters

mixed $offset The offset to retrieve.

Return Value

mixed Can return all value types.

at line line 262
void offsetSet(mixed $offset, mixed $value)

Offset to set

Parameters

mixed $offset The offset to assign the value to.
mixed $value The value to set.

Return Value

void

at line line 274
void offsetUnset(mixed $offset)

Offset to unset

Parameters

mixed $offset The offset to unset.

Return Value

void

at line line 287
int count()

Count elements of an object

Return Value

int The custom count as an integer.