HumHub Documentation (unofficial)

CommentForm extends Model

CommentForm

Tags
since
0.5

Table of Contents

Properties

$comment  : Comment
$fileList  : array<string|int, mixed>
The list of files attached to a comment
$target  : Comment|ContentActiveRecord

Methods

__construct()  : mixed
formName()  : string
load()  : mixed
rules()  : array<string|int, mixed>
save()  : bool
Saves the form
validate()  : bool

Properties

$fileList

The list of files attached to a comment

public array<string|int, mixed> $fileList

Methods

__construct()

public __construct(mixed $target[, mixed $comment = null ]) : mixed
Parameters
$target : mixed
$comment : mixed = null

formName()

public formName() : string
Return values
string

load()

public load(mixed $data[, mixed $formName = null ]) : mixed
Parameters
$data : mixed
$formName : mixed = null
Tags
inheritDoc

rules()

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

validation rules for model attributes.

validate()

public validate([null $attributeNames = null ][, bool $clearErrors = true ]) : bool
Parameters
$attributeNames : null = null
$clearErrors : bool = true
Tags
throws
ServerErrorHttpException
Return values
bool

        
On this page

Search results