Properties

$filters

$filters : array

Form filters

Type

array

$data

$data : array

Model data

Type

array

$output

$output : string

View output string

Type

string

Methods

addFilter()

addFilter(mixed  $filter) : \Pop\Filter\FilterableTrait

Add filter

Parameters

mixed $filter

Throws

\InvalidArgumentException

Returns

\Pop\Filter\FilterableTrait

addFilters()

addFilters(array  $filters) : \Pop\Filter\FilterableTrait

Add filters

Parameters

array $filters

Returns

\Pop\Filter\FilterableTrait

hasFilters()

hasFilters() : boolean

Has filters

Returns

boolean

getFilters()

getFilters() : array

Get filters

Returns

array

filterAll()

filterAll(array  $values) : array

Filter all values, ignoring excludes

Parameters

array $values

Returns

array

filter()

filter(mixed  $values) : mixed

Filter values

Parameters

mixed $values

Returns

mixed

__construct()

__construct(mixed  $template = null, array  $data = null, mixed  $filters = null) 

Constructor

Instantiate the view object

Parameters

mixed $template
array $data
mixed $filters

createFromJson()

createFromJson(string  $jsonString, integer  $depth = 512, integer  $options) : \Pop\Utils\ArrayObject

Create array object from JSON string

Parameters

string $jsonString
integer $depth
integer $options

Returns

\Pop\Utils\ArrayObject

createFromSerialized()

createFromSerialized(string  $string) : \Pop\Utils\ArrayObject

Create array object from serialized string

Parameters

string $string

Returns

\Pop\Utils\ArrayObject

count()

count() : integer

Method to get the count of the array object

Returns

integer

getIterator()

getIterator() : \ArrayIterator

Method to iterate over the array object

Returns

\ArrayIterator

jsonSerialize()

jsonSerialize(integer  $options, integer  $depth = 512) : string

JSON serialize the array object

Parameters

integer $options
integer $depth

Returns

string

jsonUnserialize()

jsonUnserialize(string  $jsonString, integer  $depth = 512, integer  $options) : \Pop\Utils\ArrayObject

Unserialize a JSON string

Parameters

string $jsonString
integer $depth
integer $options

Returns

\Pop\Utils\ArrayObject

serialize()

serialize(boolean  $self = false) : string

Serialize the array object

Parameters

boolean $self

Returns

string

unserialize()

unserialize(string  $string) : \Pop\Utils\ArrayObject

Unserialize a string

Parameters

string $string

Throws

\Pop\Utils\Exception

Returns

\Pop\Utils\ArrayObject

__set()

__set(string  $name, mixed  $value) : \Pop\Utils\ArrayObject

Set a value

Parameters

string $name
mixed $value

Returns

\Pop\Utils\ArrayObject

__get()

__get(string  $name) : mixed

Get a value

Parameters

string $name

Returns

mixed

__isset()

__isset(string  $name) : boolean

Is value set

Parameters

string $name

Returns

boolean

__unset()

__unset(string  $name) : void

Unset a value

Parameters

string $name

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : void

ArrayAccess offsetSet

Parameters

mixed $offset
mixed $value

offsetGet()

offsetGet(mixed  $offset) : mixed

ArrayAccess offsetGet

Parameters

mixed $offset

Returns

mixed

offsetExists()

offsetExists(mixed  $offset) : boolean

ArrayAccess offsetExists

Parameters

mixed $offset

Returns

boolean

offsetUnset()

offsetUnset(mixed  $offset) : void

ArrayAccess offsetUnset

Parameters

mixed $offset

toArray()

toArray() : array

Get the values as an array

Returns

array

hasTemplate()

hasTemplate() : boolean

Has a view template

Returns

boolean

getOutput()

getOutput() : string

Get rendered output

Returns

string

isFile()

isFile() : boolean

Is view template a file

Returns

boolean

isStream()

isStream() : boolean

Is view template a stream

Returns

boolean

getData()

getData() : array

Get all model data

Returns

array

get()

get(string  $key) : mixed

Get data

Parameters

string $key

Returns

mixed

setTemplate()

setTemplate(mixed  $template) : \Pop\View\View

Set view template

Parameters

mixed $template

Returns

\Pop\View\View

setData()

setData(array  $data = array()) : \Pop\View\View

Set all model data

Parameters

array $data

Returns

\Pop\View\View

set()

set(string  $name, mixed  $value) : \Pop\View\View

Set model data

Parameters

string $name
mixed $value

Returns

\Pop\View\View

merge()

merge(array  $data) : \Pop\View\View

Merge new model data

Parameters

array $data

Returns

\Pop\View\View

render()

render() : mixed

Render the view

Throws

\Pop\View\Exception

Returns

mixed

__toString()

__toString() : string

Return rendered view as string

Returns

string