Class MLA (Media Library Assistant) Template Query implements the searchable database of shortcode templates
| package |
Media Library Assistant |
|---|---|
| since | 2.40 |
_execute_template_items_query( $request) : array
| since | 2.40 |
|---|
arrayquery results; array of MLA post_mime_type objects
_get_shortcode_template_items(boolean $force_refresh = false) : boolean
| since | 2.40 |
|---|
booleanOptional. Force a reload of items. Default false.
booleanSuccess (true) or failure (false) of the operation
_prepare_template_items_query( $raw_request, $offset, $count) : array
| since | 2.40 |
|---|
arrayrevised arguments suitable for query
_sort_uname_callback(array $a, array $b) : integer
| since | 2.40 |
|---|
arrayThe first array.
arrayThe second array.
integerThe comparison result.
mla_add_shortcode_template(array $value)
| since | 2.40 |
|---|---|
arrayMLA Shortcode Template new value.
mla_count_template_items( $request) : integer
| since | 2.40 |
|---|
integerNumber of MLA shortcode_template objects
mla_find_shortcode_template(integer $ID) : array
| since | 2.40 |
|---|
integerMLA Shortcode Template ID
arrayMLA shortcode_template array
mla_find_shortcode_template_ID(string $type, string $name) : integer
| since | 2.40 |
|---|
stringMLA Shortcode Template type; style or markup.
stringMLA Shortcode Template name.
integerTemplate ID if the template exists else zero (0).
mla_put_shortcode_template_items()
| since | 2.40 |
|---|---|
mla_query_template_items( $request, $offset, $count) : array
| since | 2.40 |
|---|
arrayMLA shortcode_template objects
mla_replace_shortcode_template(array $value) : boolean
| since | 2.40 |
|---|
arrayMLA Shortcode Template new value.
booleantrue if object exists else false.
mla_tabulate_template_items( $s = '') : array
| since | 2.40 |
|---|
array( 'singular' label, 'plural' label, 'count' of items )
mla_update_shortcode_template(integer $ID, string $key, string $value) : boolean
| since | 2.40 |
|---|
integerMLA Shortcode Template ID.
stringMLA Shortcode Template property.
stringMLA Shortcode Template new value.
booleantrue if object exists else false.
_shortcode_template_items : array
| since | |
|---|---|
| var |
{ Items by ID. Key $$ID is an index number starting with 1.
ID => ( post_ID, type, shortcode, default, name, description, changed, deleted ) |
array
_shortcode_template_highest_ID : integer
| since | |
|---|---|
| var |
integer