MLACoreOptions

Class MLA (Media Library Assistant) Core Options defines MLA option settings and defaults

package

Media Library Assistant

since 2.25

Methods

Localize $mla_option_definitions array

mla_localize_option_definitions_array() : void
static

Localization must be done at runtime; these calls cannot be placed in the "public static" array definition itself. Called from MLATest::initialize.

since 2.20

Constants

Provides a unique name for the settings page

MLA_SETTINGS_SLUG
since
var

Provides a unique name for the current version option

MLA_VERSION_OPTION

Provides a unique name for the exclude revisions option

MLA_EXCLUDE_REVISIONS

Provides a unique name for a database tuning option

MLA_INSERTED_IN_TUNING

Provides a unique name for the taxonomy count Attachments option

MLA_COUNT_TERM_ATTACHMENTS

Provides a unique name for the taxonomy show Count column option

MLA_SHOW_COUNT_COLUMN

Provides a unique name for the taxonomy support option

MLA_TAXONOMY_SUPPORT

Provides a unique name for the "filter on custom field" key

MLA_FILTER_METAKEY

Provides a unique name for the "all custom field values" key

ALL_MLA_FILTER_METAKEY

Provides a unique name for the "no custom field values" key

NO_MLA_FILTER_METAKEY

Provides a unique name for the admin screen page title option

MLA_SCREEN_PAGE_TITLE

Provides a unique name for the admin screen menu title option

MLA_SCREEN_MENU_TITLE

Provides a unique name for the admin screen menu order option

MLA_SCREEN_ORDER

Provides a unique name for the admin screen remove Media/Library option

MLA_SCREEN_DISPLAY_LIBRARY

Provides a unique name for the Media/Assistant list/grid switcher option

MLA_SCREEN_DISPLAY_SWITCHER

Provides a unique name for the default orderby option

MLA_DEFAULT_ORDERBY

Provides a unique name for the default order option

MLA_DEFAULT_ORDER

Provides a unique name for the Media/Assistant submenu table views width option

MLA_TABLE_VIEWS_WIDTH

Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option

MLA_TABLE_ICON_SIZE

Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option

MLA_SHOW_FILE_NAME

Provides a unique name for the Bulk Update and Map All chunk size option

MLA_BULK_CHUNK_SIZE

Provides a unique name for the taxonomy filter maximum depth option

MLA_TAXONOMY_FILTER_DEPTH

Provides a unique name for the taxonomy filter maximum depth option

MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN

Provides a unique name for the display Search Media controls option

MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS

Provides a unique name for the display Search Media controls option

MLA_SEARCH_MEDIA_FILTER_DEFAULTS

Provides a "size" attribute value for the EXIF/Template Value field

MLA_EXIF_SIZE

Provides a unique name for the Custom Field "new rule" key

MLA_NEW_CUSTOM_RULE

Provides a unique name for the Custom Field "new field" key

MLA_NEW_CUSTOM_FIELD

Provides a unique name for the "searchable taxonomies" option

MLA_EDIT_MEDIA_SEARCH_TAXONOMY

Provides a unique name for the Edit Media additional meta boxes option

MLA_EDIT_MEDIA_META_BOXES

Provides a unique name for the Media/Add New bulk edit option

MLA_ADD_NEW_BULK_EDIT

Provides a unique name for the Media/Add New bulk edit "on top" option

MLA_ADD_NEW_BULK_EDIT_ON_TOP

Provides a unique name for the Media/Add New bulk edit "Open Automatically" option

MLA_ADD_NEW_BULK_EDIT_AUTO_OPEN

Provides a unique name for the Media Grid toolbar option, which also controls the ATTACHMENT DETAILS enhancements

MLA_MEDIA_GRID_TOOLBAR

Provides a unique name for the Media Manager toolbar option, which also controls the ATTACHMENT DETAILS enhancements

MLA_MEDIA_MODAL_TOOLBAR

Provides a unique name for the Media Manager toolbar MIME Types option

MLA_MEDIA_MODAL_MIMETYPES

Provides a unique name for the Media Manager toolbar Month and Year option

MLA_MEDIA_MODAL_MONTHS

Provides a unique name for the Media Manager toolbar Taxonomy Terms option

MLA_MEDIA_MODAL_TERMS

Provides a unique name for the Media Manager toolbar Search Box Controls option

MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS

Provides a unique name for the Media Manager Attachment Details searchable taxonomy option This option is for hierarchical taxonomies, e.g., "Att. Categories".

MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX

Provides a unique name for the Media Manager Attachment Details searchable taxonomy option This option is for flat taxonomies, e.g., "Att. Tags".

MLA_MEDIA_MODAL_DETAILS_TAG_METABOX

Provides a unique name for the Media Manager Attachment Details auto-fill option

MLA_MEDIA_MODAL_DETAILS_AUTOFILL

Provides a unique name for the Media Manager orderby option

MLA_MEDIA_MODAL_ORDERBY

Provides a unique name for the Media Manager order option

MLA_MEDIA_MODAL_ORDER

Provides a unique name for the Media Manager Force Image Default Setings option

MLA_DELETE_OPTION_SETTINGS

Provides a unique name for the Media Manager Force Image Default Setings option

MLA_DELETE_OPTION_BACKUPS

Provides a unique name for the Media Manager Force Image Default Setings option

MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS

Provides a unique name for the Post MIME Types option

MLA_POST_MIME_TYPES

Provides a unique name for the Enable Post MIME Types option

MLA_ENABLE_POST_MIME_TYPES

Provides a unique name for the Upload MIME Types option

MLA_UPLOAD_MIMES

Provides a unique name for the Enable Upload MIME Types option

MLA_ENABLE_UPLOAD_MIMES

Provides a unique name for the Enable MLA Icons option

MLA_ENABLE_MLA_ICONS

Provides a unique name for the Debug display limit option

MLA_DEBUG_DISPLAY_LIMIT

Provides a unique name for the Debug alternate log file option

MLA_DEBUG_FILE

Provides a unique name for the Debug replace PHP log file option

MLA_DEBUG_REPLACE_PHP_LOG

Provides a unique name for the Debug replace PHP error_reporting option

MLA_DEBUG_REPLACE_PHP_REPORTING

Provides a unique name for the Debug replace MLA_DEBUG_LEVEL option

MLA_DEBUG_REPLACE_LEVEL

Properties

$mla_option_definitions defines the database options and admin page areas for setting/updating them

mla_option_definitions : 
static

The array must be populated at runtime in MLACoreOptions::mla_localize_option_definitions_array(); localization calls cannot be placed in the "public static" array definition itself.

Each option is defined by an array with the following elements:

array key => HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)

tab => Settings page tab id for the option name => admin page label or heading text type => 'checkbox', 'header', 'radio', 'select', 'text', 'textarea', 'custom', 'hidden' std => default value help => help text size => text size, default 40 cols => textbox columns, default 90 rows => textbox rows, default 5 options => array of radio or select option values texts => array of radio or select option display texts render => rendering function for 'custom' options. Usage: $options_list .= ['render']( 'render', $key, $value ); update => update function for 'custom' options; returns nothing. Usage: $message = ['update']( 'update', $key, $value, $_REQUEST ); delete => delete function for 'custom' options; returns nothing. Usage: $message = ['delete']( 'delete', $key, $value, $_REQUEST ); reset => reset function for 'custom' options; returns nothing. Usage: $message = ['reset']( 'reset', $key, $value, $_REQUEST );

Type(s)