\MslsOutput

Output in the frontend

Summary

Methods
Properties
Constants
init()
get()
__toString()
get_tags()
set_tags()
is_requirements_not_fulfilled()
get_input_array()
is_autosave()
verify_nonce()
delete()
No public properties found
No constants found
save()
$tags
N/A
No private methods found
No private properties found
N/A

Properties

$tags

$tags : array

Holds the format for the output

Type

array

Methods

init()

init() : \MslsMain

Every child of MslsMain has to define a init-method

Returns

\MslsMain

get()

get(int $display, bool $filter, bool $exists) : array

Creates and gets the output as an array

Parameters

int $display
bool $filter
bool $exists

Returns

array

__toString()

__toString() : string

Returns a string when the object will be treated like a string

Returns

string

get_tags()

get_tags() : array

Gets tags for the output

Returns

array

set_tags()

set_tags(array $arr) : \MslsOutput

Sets tags for the output

Parameters

array $arr

Returns

\MslsOutput

is_requirements_not_fulfilled()

is_requirements_not_fulfilled(\MslsOptions|null $mydata, boolean $exists, string $language) : boolean

Returns true if the requirements not fulfilled

Parameters

\MslsOptions|null $mydata
boolean $exists
string $language

Returns

boolean

get_input_array()

get_input_array(int $object_id) : array

Get the input array

Parameters

int $object_id

Returns

array

is_autosave()

is_autosave(int $post_id) : bool

Checks if the current input comes from the autosave-functionality

Parameters

int $post_id

Returns

bool

verify_nonce()

verify_nonce() : boolean

Checks for the nonce in the INPUT_POST

Returns

boolean

delete()

delete(int $object_id)

Delete

Parameters

int $object_id

save()

save(int $object_id, string $class)

Save

Parameters

int $object_id
string $class