Comment extends Model

Comment.

Table of Contents

$errors  : array<string|int, mixed>
Object errors.
$fields  : array<string|int, mixed>
Object fields.
$id  : int
Object ID.
$meta  : array<string|int, mixed>
Class meta values.
$values  : array<string|int, mixed>
Object values.
__call()  : mixed
Catches calls to undefined methods.
__callStatic()  : mixed
Catches calls to undefined static methods.
__construct()  : mixed
Class constructor.
_get_errors()  : array<string|int, mixed>
Gets object errors.
_get_fields()  : array<string|int, mixed>
Gets object fields.
delete()  : bool
Deletes object.
fill()  : object
Sets field values.
get()  : mixed
Gets object.
get_id()  : int
Gets object ID.
get_meta()  : mixed
Gets class meta values.
init()  : mixed
Class initializer.
save()  : bool
Saves object.
serialize()  : array<string|int, mixed>
Gets field values.
set_id()  : object
Sets object ID.
trash()  : bool
Trashes object.
validate()  : bool
Validates field values.
_add_errors()  : mixed
Adds object errors.
_get_query()  : object
Gets model query.
_get_value()  : mixed
Gets field value.
_save_value()  : mixed
Saves field value.
_set_fields()  : mixed
Sets model fields.
_set_value()  : mixed
Sets field value.
boot()  : mixed
Bootstraps model properties.
set_meta()  : mixed
Sets class meta values.
set_property()  : mixed
Sets a property value.

Properties

Methods

__call()

Catches calls to undefined methods.

public final __call(string $name, array<string|int, mixed> $args) : mixed
Parameters
$name : string

Method name.

$args : array<string|int, mixed>

Method arguments.

Tags
throws
BadMethodCallException

Invalid method.

Return values
mixed

__callStatic()

Catches calls to undefined static methods.

public final static __callStatic(string $name, array<string|int, mixed> $args) : mixed
Parameters
$name : string

Method name.

$args : array<string|int, mixed>

Method arguments.

Tags
throws
BadMethodCallException

Invalid method.

Return values
mixed

__construct()

Class constructor.

public __construct([array<string|int, mixed> $args = [] ]) : mixed
Parameters
$args : array<string|int, mixed> = []

Model arguments.

Return values
mixed

_get_errors()

Gets object errors.

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

_get_fields()

Gets object fields.

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

delete()

Deletes object.

public final delete([int $id = null ]) : bool
Parameters
$id : int = null

Object ID.

Return values
bool

fill()

Sets field values.

public final fill(array<string|int, mixed> $values) : object
Parameters
$values : array<string|int, mixed>

Field values.

Return values
object

get_meta()

Gets class meta values.

public final static get_meta([string $name = '' ]) : mixed
Parameters
$name : string = ''

Meta name.

Return values
mixed

init()

Class initializer.

public static init([array<string|int, mixed> $meta = [] ]) : mixed
Parameters
$meta : array<string|int, mixed> = []

Class meta values.

Return values
mixed

save()

Saves object.

public final save([array<string|int, mixed> $names = [] ]) : bool
Parameters
$names : array<string|int, mixed> = []

Field names.

Return values
bool

serialize()

Gets field values.

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

set_id()

Sets object ID.

public final set_id(int $id) : object
Parameters
$id : int

Object ID.

Return values
object

trash()

Trashes object.

public final trash([int $id = null ]) : bool
Parameters
$id : int = null

Object ID.

Return values
bool

validate()

Validates field values.

public final validate([array<string|int, mixed> $names = [] ]) : bool
Parameters
$names : array<string|int, mixed> = []

Field names.

Return values
bool

_add_errors()

Adds object errors.

protected final _add_errors(mixed $errors) : mixed
Parameters
$errors : mixed

Object errors.

Return values
mixed

_get_query()

Gets model query.

protected final static _get_query([object $model = null ]) : object
Parameters
$model : object = null

Model object.

Return values
object

_get_value()

Gets field value.

protected final _get_value(string $name[, array<string|int, mixed> $args = [] ][, bool $display = false ]) : mixed
Parameters
$name : string

Field name.

$args : array<string|int, mixed> = []

Field arguments.

$display : bool = false

Format value for display?

Return values
mixed

_save_value()

Saves field value.

protected final _save_value(string $name) : mixed
Parameters
$name : string

Field name.

Return values
mixed

_set_fields()

Sets model fields.

protected final _set_fields(array<string|int, mixed> $fields) : mixed
Parameters
$fields : array<string|int, mixed>

Model fields.

Return values
mixed

_set_value()

Sets field value.

protected final _set_value(string $name, mixed $value) : mixed
Parameters
$name : string

Field name.

$value : mixed

Field value.

Return values
mixed

set_meta()

Sets class meta values.

protected final static set_meta(array<string|int, mixed> $meta) : mixed
Parameters
$meta : array<string|int, mixed>

Meta values.

Return values
mixed

set_property()

Sets a property value.

protected final set_property(string $name, mixed $value[, string $prefix = '' ]) : mixed
Parameters
$name : string

Property name.

$value : mixed

Property value.

$prefix : string = ''

Method prefix.

Return values
mixed