\MslsPostTagClassic

Post Tag Clasic

Summary

Methods
Properties
Constants
init()
add_input()
edit_input()
print_option()
the_input()
suggest()
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

init()

init() : \MslsMain

Every child of MslsMain has to define a init-method

Returns

\MslsMain

add_input()

add_input(\StdClass $tag)

Add the input fields to the add-screen of the taxonomies

Parameters

\StdClass $tag

edit_input()

edit_input(\StdClass $tag)

Add the input fields to the edit-screen of the taxonomies

Parameters

\StdClass $tag

print_option()

print_option(\MslsBlog $blog, string $type, \MslsOptionsTax $mydata, string $item_format)

Prints options inputs

Parameters

\MslsBlog $blog
string $type
\MslsOptionsTax $mydata
string $item_format

the_input()

the_input(\StdClass $tag, string $title_format, string $item_format) : boolean

Print the input fields Returns true if the blogcollection is not empty

Parameters

\StdClass $tag
string $title_format
string $item_format

Returns

boolean

suggest()

suggest()

Suggest

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

set()

set(int $term_id)

Set calls the save method if taxonomy is set

Parameters

int $term_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