\CPAC_Storage_Model_MLA

Class CPAC Storage Model MLA (Media Library Assistant) supports the Admin Columns plugin

Summary

Methods
Properties
Constants
init()
init_manage_value()
get_default_column_names()
get_meta()
mla_manage_value()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

init()

init() 

Calls the parent function to set some default configs, then initializes some MLA-specific properties.

init_manage_value()

init_manage_value() 

Sets an MLA filter to handle custom column display.

get_default_column_names()

get_default_column_names() : array

Returns the Media/Assistant sub menu table column slugs/keys

Returns

array —

( index => 'column_slug' )

get_meta()

get_meta() : array

Returns the custom fields assigned to Media Library items, removing those already present in the Media/Assistant submenu table

Returns

array —

( index => array( 0 => 'custom field name' ) )

mla_manage_value()

mla_manage_value(string  $content, object  $item, string  $column_name) : string

Return the content of an Admin Columns custom column

Parameters

string $content

Current column content (empty string)

object $item

Current Media Library item

string $column_name

Current column slug

Returns

string —

Column value or NULL if not an Admin Columns custom column