PostEditForm
extends Model
in package
PostEditForm
Tags
Table of Contents
Properties
Methods
- formName() : mixed
- load() : mixed
- rules() : mixed
- save() : bool
- Saves the form
- validate() : mixed
Properties
$fileList
The list of files attached to a Post
public
array<string|int, mixed>
$fileList
$post
public
Post
$post
The edited Post
Methods
formName()
public
formName() : mixed
Tags
load()
public
load(mixed $data[, mixed $formName = null ]) : mixed
Parameters
- $data : mixed
- $formName : mixed = null
Tags
rules()
public
rules() : mixed
Tags
save()
Saves the form
public
save() : bool
Tags
Return values
boolvalidate()
public
validate([mixed $attributeNames = null ][, mixed $clearErrors = true ]) : mixed
Parameters
- $attributeNames : mixed = null
- $clearErrors : mixed = true