\MatthiasWeb\RealMediaLibrary\viewView

Handles the view for dropdowns and custom UI's for folders.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
__construct()
selector()
dropdown()
optionsSelected()
namesSlugArray()
getStructure()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
optionsHTML()
namesSlugArrayRec()
$structure
$namesSlugArrayCache
N/A

Properties

$structure

$structure :

Type

$namesSlugArrayCache

$namesSlugArrayCache :

Type

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

Returns

string

selector()

selector(  $options)

Parameters

$options

dropdown()

dropdown(integer  $selected,boolean  $disabled,boolean  $useAll = true): string

Create dropdown from the current users tree.

Parameters

integer $selected
boolean $disabled
boolean $useAll

Returns

string —

HTML

optionsSelected()

optionsSelected(  $selected,  $value)

Parameters

$selected
$value

namesSlugArray()

namesSlugArray(array<mixed,object>  $tree = null,string  $spaces = '--',boolean  $forceReload = false): mixed

Get array for the javascript backbone view.

The private namesSlugArray is for caching purposes and can be reset with the given function.

Parameters

array<mixed,object> $tree
string $spaces
boolean $forceReload

Returns

mixed

optionsHTML()

optionsHTML(integer  $selected = -1,array<mixed,object>  $tree = null,string  $slashed = '',string  $spaces = '&nbsp;&nbsp;',boolean  $useAll = true,boolean  $disabled = null)

Gets a HTML formatted string for <option>.

Parameters

integer $selected
array<mixed,object> $tree
string $slashed
string $spaces
boolean $useAll
boolean $disabled

namesSlugArrayRec()

namesSlugArrayRec(  $tree = null,  $spaces = '--')

Parameters

$tree
$spaces