\MLACoreOptions

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

Summary

Methods
Properties
Constants
mla_localize_option_definitions_array()
$mla_option_definitions
MLA_SETTINGS_SLUG
MLA_VERSION_OPTION
MLA_EXCLUDE_REVISIONS
MLA_FEATURED_IN_TUNING
MLA_INSERTED_IN_TUNING
MLA_GALLERY_IN_TUNING
MLA_MLA_GALLERY_IN_TUNING
MLA_COUNT_TERM_ATTACHMENTS
MLA_TAXONOMY_SUPPORT
MLA_FILTER_METAKEY
ALL_MLA_FILTER_METAKEY
NO_MLA_FILTER_METAKEY
MLA_SCREEN_PAGE_TITLE
MLA_SCREEN_MENU_TITLE
MLA_SCREEN_ORDER
MLA_SCREEN_DISPLAY_LIBRARY
MLA_SCREEN_DISPLAY_SWITCHER
MLA_DEFAULT_ORDERBY
MLA_DEFAULT_ORDER
MLA_TABLE_VIEWS_WIDTH
MLA_TABLE_ICON_SIZE
MLA_BULK_CHUNK_SIZE
MLA_TAXONOMY_FILTER_DEPTH
MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN
MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS
MLA_SEARCH_MEDIA_FILTER_DEFAULTS
MLA_EXIF_SIZE
MLA_NEW_CUSTOM_RULE
MLA_NEW_CUSTOM_FIELD
MLA_EDIT_MEDIA_SEARCH_TAXONOMY
MLA_EDIT_MEDIA_META_BOXES
MLA_ADD_NEW_BULK_EDIT
MLA_ADD_NEW_BULK_EDIT_ON_TOP
MLA_ADD_NEW_BULK_EDIT_AUTO_OPEN
MLA_MEDIA_GRID_TOOLBAR
MLA_MEDIA_MODAL_TOOLBAR
MLA_MEDIA_MODAL_MIMETYPES
MLA_MEDIA_MODAL_MONTHS
MLA_MEDIA_MODAL_TERMS
MLA_MEDIA_MODAL_TERMS_SEARCH
MLA_MEDIA_MODAL_SEARCHBOX
MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS
MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX
MLA_MEDIA_MODAL_DETAILS_TAG_METABOX
MLA_MEDIA_MODAL_DETAILS_AUTOFILL
MLA_MEDIA_MODAL_ORDERBY
MLA_MEDIA_MODAL_ORDER
MLA_DELETE_OPTION_SETTINGS
MLA_DELETE_OPTION_BACKUPS
MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS
MLA_POST_MIME_TYPES
MLA_ENABLE_POST_MIME_TYPES
MLA_UPLOAD_MIMES
MLA_ENABLE_UPLOAD_MIMES
MLA_ENABLE_MLA_ICONS
MLA_DEBUG_DISPLAY_LIMIT
MLA_DEBUG_FILE
MLA_DEBUG_REPLACE_PHP_LOG
MLA_DEBUG_REPLACE_PHP_REPORTING
MLA_DEBUG_REPLACE_LEVEL
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

MLA_SETTINGS_SLUG

MLA_SETTINGS_SLUG

Provides a unique name for the settings page

MLA_VERSION_OPTION

MLA_VERSION_OPTION

Provides a unique name for the current version option

MLA_EXCLUDE_REVISIONS

MLA_EXCLUDE_REVISIONS

Provides a unique name for the exclude revisions option

MLA_INSERTED_IN_TUNING

MLA_INSERTED_IN_TUNING

Provides a unique name for a database tuning option

MLA_COUNT_TERM_ATTACHMENTS

MLA_COUNT_TERM_ATTACHMENTS

Provides a unique name for the taxonomy count Attachments option

MLA_TAXONOMY_SUPPORT

MLA_TAXONOMY_SUPPORT

Provides a unique name for the taxonomy support option

MLA_FILTER_METAKEY

MLA_FILTER_METAKEY

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

ALL_MLA_FILTER_METAKEY

ALL_MLA_FILTER_METAKEY

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

NO_MLA_FILTER_METAKEY

NO_MLA_FILTER_METAKEY

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

MLA_SCREEN_PAGE_TITLE

MLA_SCREEN_PAGE_TITLE

Provides a unique name for the admin screen page title option

MLA_SCREEN_MENU_TITLE

MLA_SCREEN_MENU_TITLE

Provides a unique name for the admin screen menu title option

MLA_SCREEN_ORDER

MLA_SCREEN_ORDER

Provides a unique name for the admin screen menu order option

MLA_SCREEN_DISPLAY_LIBRARY

MLA_SCREEN_DISPLAY_LIBRARY

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

MLA_SCREEN_DISPLAY_SWITCHER

MLA_SCREEN_DISPLAY_SWITCHER

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

MLA_DEFAULT_ORDERBY

MLA_DEFAULT_ORDERBY

Provides a unique name for the default orderby option

MLA_DEFAULT_ORDER

MLA_DEFAULT_ORDER

Provides a unique name for the default order option

MLA_TABLE_VIEWS_WIDTH

MLA_TABLE_VIEWS_WIDTH

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

MLA_TABLE_ICON_SIZE

MLA_TABLE_ICON_SIZE

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

MLA_BULK_CHUNK_SIZE

MLA_BULK_CHUNK_SIZE

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

MLA_TAXONOMY_FILTER_DEPTH

MLA_TAXONOMY_FILTER_DEPTH

Provides a unique name for the taxonomy filter maximum depth option

MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN

MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN

Provides a unique name for the taxonomy filter maximum depth option

MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS

MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS

Provides a unique name for the display Search Media controls option

MLA_SEARCH_MEDIA_FILTER_DEFAULTS

MLA_SEARCH_MEDIA_FILTER_DEFAULTS

Provides a unique name for the display Search Media controls option

MLA_EXIF_SIZE

MLA_EXIF_SIZE

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

MLA_NEW_CUSTOM_RULE

MLA_NEW_CUSTOM_RULE

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

MLA_NEW_CUSTOM_FIELD

MLA_NEW_CUSTOM_FIELD

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

MLA_EDIT_MEDIA_SEARCH_TAXONOMY

MLA_EDIT_MEDIA_SEARCH_TAXONOMY

Provides a unique name for the "searchable taxonomies" option

MLA_EDIT_MEDIA_META_BOXES

MLA_EDIT_MEDIA_META_BOXES

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

MLA_ADD_NEW_BULK_EDIT

MLA_ADD_NEW_BULK_EDIT

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

MLA_ADD_NEW_BULK_EDIT_ON_TOP

MLA_ADD_NEW_BULK_EDIT_ON_TOP

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

MLA_ADD_NEW_BULK_EDIT_AUTO_OPEN

MLA_ADD_NEW_BULK_EDIT_AUTO_OPEN

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

MLA_MEDIA_GRID_TOOLBAR

MLA_MEDIA_GRID_TOOLBAR

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

MLA_MEDIA_MODAL_TOOLBAR

MLA_MEDIA_MODAL_TOOLBAR

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

MLA_MEDIA_MODAL_MIMETYPES

MLA_MEDIA_MODAL_MIMETYPES

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

MLA_MEDIA_MODAL_MONTHS

MLA_MEDIA_MODAL_MONTHS

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

MLA_MEDIA_MODAL_TERMS

MLA_MEDIA_MODAL_TERMS

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

MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS

MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS

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

MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX

MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX

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_TAG_METABOX

MLA_MEDIA_MODAL_DETAILS_TAG_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_AUTOFILL

MLA_MEDIA_MODAL_DETAILS_AUTOFILL

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

MLA_MEDIA_MODAL_ORDERBY

MLA_MEDIA_MODAL_ORDERBY

Provides a unique name for the Media Manager orderby option

MLA_MEDIA_MODAL_ORDER

MLA_MEDIA_MODAL_ORDER

Provides a unique name for the Media Manager order option

MLA_DELETE_OPTION_SETTINGS

MLA_DELETE_OPTION_SETTINGS

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

MLA_DELETE_OPTION_BACKUPS

MLA_DELETE_OPTION_BACKUPS

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

MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS

MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS

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

MLA_POST_MIME_TYPES

MLA_POST_MIME_TYPES

Provides a unique name for the Post MIME Types option

MLA_ENABLE_POST_MIME_TYPES

MLA_ENABLE_POST_MIME_TYPES

Provides a unique name for the Enable Post MIME Types option

MLA_UPLOAD_MIMES

MLA_UPLOAD_MIMES

Provides a unique name for the Upload MIME Types option

MLA_ENABLE_UPLOAD_MIMES

MLA_ENABLE_UPLOAD_MIMES

Provides a unique name for the Enable Upload MIME Types option

MLA_ENABLE_MLA_ICONS

MLA_ENABLE_MLA_ICONS

Provides a unique name for the Enable MLA Icons option

MLA_DEBUG_DISPLAY_LIMIT

MLA_DEBUG_DISPLAY_LIMIT

Provides a unique name for the Debug display limit option

MLA_DEBUG_FILE

MLA_DEBUG_FILE

Provides a unique name for the Debug alternate log file option

MLA_DEBUG_REPLACE_PHP_LOG

MLA_DEBUG_REPLACE_PHP_LOG

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

MLA_DEBUG_REPLACE_PHP_REPORTING

MLA_DEBUG_REPLACE_PHP_REPORTING

Provides a unique name for the Debug replace PHP error_reporting option

MLA_DEBUG_REPLACE_LEVEL

MLA_DEBUG_REPLACE_LEVEL

Provides a unique name for the Debug replace MLA_DEBUG_LEVEL option

Properties

$mla_option_definitions

$mla_option_definitions : 

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

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

Methods

mla_localize_option_definitions_array()

mla_localize_option_definitions_array() : void

Localize $mla_option_definitions array

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