Plugin interface

package midgard.admin.asgard

 Methods

_on_initialize ()

asgard_header ()

Add Asgard styling for plugins
Static

bind_to_object ($object, $handler_id, $data)

Static method for binding view to an object
Static

Parameters

$object

$handler_id

$data

get_default_mode ($data)

Helper function that sets the default object mode
Static

Parameters

$data

get_preference (string $preference)

Get a preference for the current user
Static

Parameters

$preference

stringName of the preference

get_root_classes ()

Get the MgdSchema root classes
Static

Returns

arraycontaining class name and translated name

get_type_label ($type)

Static

Parameters

$type

prepare_plugin (string $title, array $data)

Static method other plugins may use
Static

Parameters

$title

stringPage title

$data

array&$data Local request data

set_pagetitle ($object, $handler_id, $data)

Static

Parameters

$object

$handler_id

$data

_generate_url (string $action, string $guid)

Helper to construct urls for the breadcrumbs
Static

Parameters

$action

stringThe action

$guid

stringThe GUID

_set_object_breadcrumb (mixed $object, String $handler_id, array $data)

Populate the object breadcrumb
Static

Parameters

$object

mixedMgdSchema object for which the toolbar will be created

$handler_id

StringInitialized handler id

$data

arrayLocal request data