本文整理汇总了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);