\midgard_admin_asgard_stylehelper

Style helper methods

Summary

Methods
Properties
Constants
__construct()
render_help()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_get_help_element()
_get_help_style_elementnames()
_get_style_elements_and_nodes()
_get_nodes_using_style()
_get_nodes_inheriting_style()
_get_component_default_elements()
$_data
N/A

Properties

$_data

$_data : array

The current request data

Type

array

Methods

__construct()

__construct(array  $data) 

Parameters

array $data

render_help()

render_help() 

_get_help_element()

_get_help_element() 

_get_help_style_elementnames()

_get_help_style_elementnames(\midcom_db_style  $style) 

Suggest element names to create under a style

Parameters

\midcom_db_style $style

_get_style_elements_and_nodes()

_get_style_elements_and_nodes(  $style_id) 

Parameters

$style_id

_get_nodes_using_style()

_get_nodes_using_style(string  $style) : array<mixed,\midcom_db_topic>

Get list of topics using a particular style

Parameters

string $style

Style path

Returns

array<mixed,\midcom_db_topic> —

List of folders

_get_nodes_inheriting_style()

_get_nodes_inheriting_style(  $node) 

Parameters

$node

_get_component_default_elements()

_get_component_default_elements(string  $component) : array

List the default template elements shipped with a component

Parameters

string $component

Component to look elements for

Returns

array —

List of elements found indexed by the element name