\lloc\MslsMslsOutput

Output in the frontend

Summary

Methods
Properties
Constants
__construct()
init()
debugger()
get_input_array()
is_autosave()
verify_nonce()
delete()
get()
get_alternate_links()
__toString()
get_tags()
set_tags()
is_requirements_not_fulfilled()
No public properties found
No constants found
get_input_value()
save()
$options
$collection
$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() : static

Factory

Returns

static

debugger()

debugger(mixed  $message) 

Prints a message in the error log if WP_DEBUG is true

Parameters

mixed $message

get_input_array()

get_input_array(integer  $object_id) : array

Get the input array

Parameters

integer $object_id

Returns

array

is_autosave()

is_autosave(integer  $post_id) : boolean

Checks if the current input comes from the autosave-functionality

Parameters

integer $post_id

Returns

boolean

verify_nonce()

verify_nonce() : boolean

Checks for the nonce in the INPUT_POST

Returns

boolean

delete()

delete(integer  $object_id) 

Delete

Parameters

integer $object_id

get()

get(integer  $display, boolean  $filter = false, boolean  $exists = false) : array

Creates and gets the output as an array

Parameters

integer $display
boolean $filter
boolean $exists

Returns

array

get_alternate_links()

get_alternate_links() : string

Get alternate links for the head section

Returns

string

__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 = array()) : \lloc\Msls\MslsOutput

Sets tags for the output

Parameters

array $arr

Returns

\lloc\Msls\MslsOutput

is_requirements_not_fulfilled()

is_requirements_not_fulfilled(\lloc\Msls\MslsOptions|null  $thing, boolean  $exists, string  $language) : boolean

Returns true if the requirements not fulfilled

Parameters

\lloc\Msls\MslsOptions|null $thing
boolean $exists
string $language

Returns

boolean

get_input_value()

get_input_value(  $key,   $value) : array

Prepare input key/value-pair

Parameters

$key
$value

Returns

array

save()

save(integer  $object_id, string  $class) 

Save

Parameters

integer $object_id
string $class