\WP_Nimrod

WP_Nimrod class.

Integrates Nimrod in Wordpress.

Summary

Methods
Properties
Constants
__construct()
init()
getPath()
getUrl()
bufferStart()
bufferEnd()
bufferParse()
onLoad()
gettext()
gettextWithContext()
adminMenu()
adminPage()
settingsPage()
No public properties found
No constants found
localizePlugin()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

Constructor.

init()

init(array  $config = array()) 

Register action hooks.

Parameters

array $config

Configuration options.

getPath()

getPath() : string

Retrieve the (absolute) path to the base dir.

Returns

string

getUrl()

getUrl() : string

Retrieve the URL to this file.

Returns

string

bufferStart()

bufferStart() 

Callback for page buffering init.

bufferEnd()

bufferEnd() 

Callback for page buffering shutdown.

bufferParse()

bufferParse(string  $html) : string

Callback for bufferStart(). Parses the page and outputs its contents.

Parameters

string $html

Rendered HTML page.

Returns

string

onLoad()

onLoad() 

Hook for plugins_loaded().

gettext()

gettext(string  $translated_text, string  $text, string  $domain = 'default') 

Hook of gettext().

Parameters

string $translated_text

The translated message.

string $text

The gettext msgid.

string $domain

The gettext domain.

gettextWithContext()

gettextWithContext(string  $translated_text, string  $text, string  $context, string  $domain = 'default') 

Hook of gettext_with_context().

Parameters

string $translated_text

The translated message.

string $text

The gettext msgid.

string $context

The gettext msgctxt.

string $domain

The gettext domain.

adminMenu()

adminMenu() 

Hook of admin_menu().

adminPage()

adminPage() 

Callback for add_submenu_page in adminMenu().

settingsPage()

settingsPage() 

Callback for add_options_page in adminMenu().

localizePlugin()

localizePlugin() 

Load translation files of this plugin.