Class MLA (Media Library Assistant) Custom Field Query implements the searchable database of custom field mapping rules.
| package |
Media Library Assistant |
|---|---|
| since | 2.50 |
_execute_custom_field_rules_query( $request) : array
| since | 2.50 |
|---|
arrayquery results; array of MLA post_mime_type objects
_get_custom_field_rules(boolean $force_refresh = false) : boolean
| since | 2.50 |
|---|
booleanOptional. Force a reload of rules. Default false.
booleanSuccess (true) or failure (false) of the operation
_prepare_custom_field_rules_query( $raw_request, $offset, $count) : array
| since | 2.50 |
|---|
arrayrevised arguments suitable for query
_sort_uname_callback(array $a, array $b) : integer
| since | 2.50 |
|---|
arrayThe first array.
arrayThe second array.
integerThe comparison result.
mla_add_custom_field_rule(array $value) : boolean
| since | 2.50 |
|---|
arrayMLA Custom Field Rule new value.
booleantrue if addition succeeds else false.
mla_convert_custom_field_rules(integer|array $rule_ids) : array
| since | 2.50 |
|---|
integer|array| array( $IDs ) MLA Custom Field Rule ID(s)
arrayMLA custom_field_mapping values (can be empty)
mla_count_custom_field_rules( $request) : integer
| since | 2.50 |
|---|
integerNumber of MLA custom_field_rule objects
mla_custom_field_rule_names() : array
| since | 2.50 |
|---|---|
arrayMLA custom_field_rule name => name
mla_find_custom_field_rule(integer $ID) : array
| since | 2.50 |
|---|
integerMLA Custom Field Rule ID
arrayMLA custom_field_rule array
mla_find_custom_field_rule_ID(string $rule_name) : integer
| since | 2.50 |
|---|
stringMLA Custom Field Rule name.
integerRule ID if the rule exists else zero (0).
mla_put_custom_field_rules()
| since | 2.50 |
|---|---|
mla_query_custom_field_rules( $request, $offset, $count) : array
| since | 2.50 |
|---|
arrayMLA custom_field_rule objects
mla_replace_custom_field_rule(array $value) : boolean
| since | 2.50 |
|---|
arrayMLA Custom Field Rule new value.
booleantrue if object exists else false.
mla_tabulate_custom_field_items( $s = '') : array
| since | 2.50 |
|---|
array( 'singular' label, 'plural' label, 'count' of items )
mla_update_custom_field_rule(integer $ID, string $key, string $value) : boolean
| since | 2.50 |
|---|
integerMLA Custom Field Rule ID.
stringMLA Custom Field Rule property.
stringMLA Custom Field Rule new value.
booleantrue if object exists else false.
_custom_field_rules : array
| since | |
|---|---|
| var |
{ Items by ID. Key $$ID is an index number starting with 1.
|
array
_custom_field_rule_highest_ID : integer
| since | |
|---|---|
| var |
integer