\MslsMetaBox

Meta box for the edit mode of the (custom) post types

Summary

Methods
Properties
Constants
suggest()
init()
add()
render_select()
render_input()
set()
get_input_array()
is_autosave()
verify_nonce()
delete()
No public properties found
No constants found
save()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

suggest()

suggest()

Suggest

Echo a JSON-ified array of posts of the given post-type and the requested search-term and then die silently

init()

init() : \MslsMain

Every child of MslsMain has to define a init-method

Returns

\MslsMain

add()

add()

Add

render_select()

render_select()

Render the classic select-box

render_input()

render_input()

Render the suggest input-field

set()

set(int $post_id)

Set

Parameters

int $post_id

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