\MslsMain

Abstraction for the hook classes

Summary

Methods
Properties
Constants
init()
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

init()

init() : \MslsMain

Every child of MslsMain has to define a init-method

Returns

\MslsMain

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