Documentation

FormTrait uses trait:short

Form trait

Tags
category

Pop

author

Nick Sagona, III dev@noladev.com

copyright

Copyright (c) 2009-2026 NOLA Interactive, LLC.

license

https://www.popphp.org/license New BSD License

version
4.2.6

Table of Contents

Properties

$filters  : array<string|int, mixed>
Form filters

Methods

__get()  : mixed
Get method to return the value of values[$name]
__isset()  : bool
Return the isset value of values[$name]
__set()  : void
Set method to set the property to the value of values[$name]
__unset()  : void
Unset values[$name]
addFilter()  : static
Add filter
addFilters()  : static
Add filters
clearFilters()  : static
Clear filters
count()  : int
Count of values
filter()  : mixed
Filter values
filterAll()  : array<string|int, mixed>
Filter all values, ignoring excludes
getFilters()  : array<string|int, mixed>
Get filters
getIterator()  : ArrayIterator
Method to iterate over the form elements
hasFilters()  : bool
Has filters
offsetExists()  : bool
ArrayAccess offsetExists
offsetGet()  : mixed
ArrayAccess offsetGet
offsetSet()  : void
ArrayAccess offsetSet
offsetUnset()  : void
ArrayAccess offsetUnset
toArray()  : array<string|int, mixed>
Get values

Properties

$filters

Form filters

protected array<string|int, mixed> $filters = []

Methods

__get()

Get method to return the value of values[$name]

public abstract __get(string $name) : mixed
Parameters
$name : string

__isset()

Return the isset value of values[$name]

public abstract __isset(string $name) : bool
Parameters
$name : string
Return values
bool

__set()

Set method to set the property to the value of values[$name]

public abstract __set(string $name, mixed $value) : void
Parameters
$name : string
$value : mixed

__unset()

Unset values[$name]

public abstract __unset(string $name) : void
Parameters
$name : string

addFilter()

Add filter

public addFilter(mixed $filter) : static
Parameters
$filter : mixed
Tags
throws
InvalidArgumentException
Return values
static

addFilters()

Add filters

public addFilters(array<string|int, mixed> $filters) : static
Parameters
$filters : array<string|int, mixed>
Return values
static

clearFilters()

Clear filters

public clearFilters() : static
Return values
static

count()

Count of values

public abstract count() : int
Return values
int

filter()

Filter values

public abstract filter(mixed $values) : mixed
Parameters
$values : mixed

filterAll()

Filter all values, ignoring excludes

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

getFilters()

Get filters

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

getIterator()

Method to iterate over the form elements

public getIterator() : ArrayIterator
Return values
ArrayIterator

hasFilters()

Has filters

public hasFilters() : bool
Return values
bool

offsetExists()

ArrayAccess offsetExists

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

ArrayAccess offsetGet

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed

offsetSet()

ArrayAccess offsetSet

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

offsetUnset()

ArrayAccess offsetUnset

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed

toArray()

Get values

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

        
On this page

Search results