PHP 클래스 Habari\Plugin

Template plugin object which specific plugin objects should extend This object provides the basic constructor used to ensure that plugin actions are registered against the appropriate dispatcher
상속: extends Pluggable
파일 보기 프로젝트 열기: habari/system

공개 메소드들

메소드 설명
__construct ( ) Plugin constructor.
_help_plugin_config_plugin ( array $actions, string $plugin_id ) : array Registered to the plugin_config hook to supply help via a plugin's help in xml
_help_plugin_ui_plugin ( string $plugin_id, string $action ) Registered to the plugin_ui hook to supply help via a plugin's help in xml
get_version ( ) : string Provide a method to return the version number from the plugin xml
info ( ) Loads a theme's metadata from an XML file in theme's directory.

메소드 상세

__construct() 최종 공개 메소드

Plugins should not define their own constructors, because they are instantiated to extract plugin info. Instead, include a sink for a "init" hook which is executed immediately after the plugin is loaded during normal execution.
final public __construct ( )

_help_plugin_config_plugin() 공개 메소드

Registered to the plugin_config hook to supply help via a plugin's help in xml
public _help_plugin_config_plugin ( array $actions, string $plugin_id ) : array
$actions array An array of actions applicable to this plugin
$plugin_id string The plugin id to which the actions belong
리턴 array The modified array of actions

_help_plugin_ui_plugin() 공개 메소드

Registered to the plugin_ui hook to supply help via a plugin's help in xml
public _help_plugin_ui_plugin ( string $plugin_id, string $action )
$plugin_id string The id of the plugin whose action was triggered
$action string The action triggered

get_version() 공개 메소드

Provide a method to return the version number from the plugin xml
public get_version ( ) : string
리턴 string The plugin version from XML

info() 최종 공개 메소드

Loads a theme's metadata from an XML file in theme's directory.
final public info ( )