Documentation

PageFormTrait

Trait PageFormTrait

Table of Contents

Properties

$_forms  : array<string|int, mixed>|null

Methods

addForms()  : $this
Add forms to this page.
forms()  : array<string|int, mixed>
Alias of $this->getForms();
getForms()  : array<string|int, mixed>
Return all the forms which are associated to this page.
header()  : mixed
slug()  : mixed
normalizeForm()  : array<string|int, mixed>|null

Properties

Methods

addForms()

Add forms to this page.

public addForms(array<string|int, mixed> $new[, bool $override = true ]) : $this
Parameters
$new : array<string|int, mixed>
$override : bool = true
Return values
$this

forms()

Alias of $this->getForms();

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

getForms()

Return all the forms which are associated to this page.

public getForms() : array<string|int, mixed>

Forms are returned as [name => blueprint, ...], where blueprint follows the regular form blueprint format.

Return values
array<string|int, mixed>

header()

public abstract header([mixed $var = null ]) : mixed
Parameters
$var : mixed = null

slug()

public abstract slug([mixed $var = null ]) : mixed
Parameters
$var : mixed = null

normalizeForm()

protected normalizeForm(array<string|int, mixed>|null $form[, string|null $name = null ][, array<string|int, mixed> $rules = [] ]) : array<string|int, mixed>|null
Parameters
$form : array<string|int, mixed>|null
$name : string|null = null
$rules : array<string|int, mixed> = []
Return values
array<string|int, mixed>|null

        
On this page

Search results