本文整理匯總了PHP中Manager::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP Manager::init方法的具體用法?PHP Manager::init怎麽用?PHP Manager::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Manager
的用法示例。
在下文中一共展示了Manager::init方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: init
/**
* Initialise the plugin
*/
function init()
{
parent::init();
// Set javascript file array
$this->script(array('browser'), 'plugins');
$this->css(array('browser'), 'plugins');
$this->loadExtensions();
}
示例2: init
/**
* Initialise the plugin
*/
function init()
{
$this->checkPlugin() or die('Restricted access');
parent::init();
// Set javascript file array
$this->script(array('browser'), 'plugins');
$this->css(array('browser'), 'plugins');
$this->loadExtensions();
}
示例3: init
public function init()
{
if (Manager::$init != true) {
Manager::$init = true;
add_filter('plugin_action_links_wpdemo/wpdemo.php', array($this, 'addLinks'));
add_action('admin_notices', array($this, 'addNotices'));
add_action('admin_post_wpdemo_remove_instances', array($this, 'removeInstancesNow'));
}
}
示例4: init
/**
* Initialise the plugin
*/
function init()
{
parent::init();
// Setup plugin XHR callback functions
$this->setXHR(array($this, 'getDimensions'));
// Set javascript file array
$this->script(array('imgmanager'), 'plugins');
// Set css file array
$this->css(array('imgmanager'), 'plugins');
// Load extensions if any
$this->loadExtensions();
}
示例5: init
/**
* Initialise the plugin
*/
function init()
{
// check the user/group has editor permissions
$this->checkPlugin() or die(JError::raiseError(403, JText::_('Access Forbidden')));
parent::init();
// Setup plugin XHR callback functions
$this->setXHR(array($this, 'getDimensions'));
// Set javascript file array
$this->script(array('imgmanager'), 'plugins');
// Set css file array
$this->css(array('imgmanager'), 'plugins');
// Load extensions if any
$this->loadExtensions();
}
示例6: dirname
<?php
// Diretorio do script corrente
$dir = dirname(__FILE__);
// Path do Maestro
$dir = strstr($dir, "maestro", true) . "maestro";
// Configura��o para tratamento de erros
ini_set("error_reporting", E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT);
ini_set("log_errors", "on");
ini_set("error_log", $dir . "core/var/log/php_error.log");
// Inclus�o do framework
$conf = $dir . '/core/conf/conf.php';
require_once $dir . '/core/classes/manager.php';
set_error_handler('Manager::errorHandler');
// Endereco do servico a ser executado
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . 'exemplos/data/dadosPessoaByNome';
// Inicializa��o do framework
Manager::init($conf, $dir);