Class MLA (Media Library Assistant) WPML Table provides support for the WPML Multilingual CMS family of plugins, including WPML Media, for an MLA_List_Table object.
An instance of this class is created in the class MLA_List_Table constructor (class-mla-list-table.php).
| package |
Media Library Assistant |
|---|---|
| since | 2.11 |
__construct(object $table) : void
| since | 2.11 |
|---|
objectThe MLA_List_Table object this object supports
mla_list_table_add_icl_styles() : void
| since | 2.11 |
|---|---|
mla_list_table_build_inline_data(string $inline_data, object $item) : string
Adds a 'lang' value for the JS Quick Edit function.
| since | 2.15 |
|---|
stringThe HTML markup for inline data.
objectThe current Media Library item.
stringupdated HTML markup for inline data.
mla_list_table_column_default( $content, $item, $column_name) : string
Fills in the Language columns with the item's translation status values.
| since | 2.11 |
|---|
stringText or HTML to be placed inside the column
mla_list_table_get_columns(array $columns) : array
Inserts the language columns just after the item thumbnail column. Defined as static because it is called before the List_Table object is created. Added as a filter when the file is loaded.
| since | 2.11 |
|---|
arrayAn array of columns. format: column_slug => Column Label
arrayupdated array of columns.
mla_list_table_new_instance(object $mla_list_table) : object
Adds a protected variable holding a reference to the WPML_List_Table object, then creates the WPML_List_Table passing it a reference to the new "parent" object.
| since | 2.11 |
|---|
objectNULL, to indicate no extension/use the base class.
objectupdated mla_list_table object.
mla_wpml_media_view_upload_count_filter( $count, $key, $view, $lang) : mixed
Computes the number of attachments that satisfy a meta_query specification. The count is automatically made language-specific by WPML filters.
| since | 2.11 |
|---|
mixedNULL to allow SQL query or replacement count value
mla_wpml_media_view_upload_page_count_filter( $count, $lang) : mixed
Computes the number of language-specific attachments that satisfy a meta_query specification. The count is made language-specific by WPML filters when the current_language is set.
| since | 2.11 |
|---|
mixedNULL to allow SQL query or replacement count value
mla_wpml_media_view_upload_page_sql_filter( $sql, $lang) : mixed
Computes the number of language-specific attachments that satisfy a meta_query specification. The count is made language-specific by WPML filters when the current_language is set.
| since | 2.11 |
|---|
mixedupdated SQL query string
mla_wpml_media_view_upload_sql_filter( $sql, $lang) : mixed
Computes the number of language-specific attachments that satisfy a meta_query specification. The count is made language-specific by WPML filters when the current_language is set.
| since | 2.11 |
|---|
mixedupdated SQL query string
mla_list_table : object
| since | |
|---|---|
| var |
object
language_columns : array
Defined as static because it is used before the List_Table object is created.
| since | |
|---|---|
| var |
array