本文整理汇总了PHP中WFEditorPlugin::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP WFEditorPlugin::__construct方法的具体用法?PHP WFEditorPlugin::__construct怎么用?PHP WFEditorPlugin::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WFEditorPlugin
的用法示例。
在下文中一共展示了WFEditorPlugin::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
/**
* Constructor activating the default information of the class
*
* @access protected
*/
function __construct()
{
parent::__construct();
$this->setXHR(array($this, 'getLinks'));
// check the user/group has editor permissions
$this->checkPlugin() or die(JError::raiseError(403, JText::_('ERROR_403')));
}
示例2: __construct
/**
* @access public
*/
public function __construct($config = array()) {
// Call parent
//parent::__construct();
if (!array_key_exists('type', $config)) {
$config['type'] = 'manager';
}
if (!array_key_exists('layout', $config)) {
$config['layout'] = 'manager';
}
if (!array_key_exists('view_path', $config)) {
$config['view_path'] = WF_EDITOR_LIBRARIES . '/views/plugin';
}
if (!array_key_exists('template_path', $config)) {
$config['template_path'] = WF_EDITOR_LIBRARIES . '/views/plugin/tmpl';
}
// Call parent
parent::__construct($config);
// update properties
$this->setProperties($this->getConfig());
// initialize the browser
$browser = $this->getBrowser();
}
示例3:
/**
* Constructor activating the default information of the class
*
* @access protected
*/
function __construct()
{
parent::__construct();
$request = WFRequest::getInstance();
// Setup plugin XHR callback functions
$request->setRequest(array($this, 'showPreview'));
$this->execute();
}
示例4: array
/**
* @access protected
*/
function __construct($config = array())
{
// Call parent
parent::__construct();
// set private properties
$this->set('_type', 'manager');
$this->set('_layout', 'manager');
$this->set('_base_path', WF_EDITOR_LIBRARIES . DS . 'views' . DS . 'plugin');
$this->set('_template_path', WF_EDITOR_LIBRARIES . DS . 'views' . DS . 'plugin' . DS . 'tmpl');
$this->setProperties(array_merge($this->getConfig(), $this->getProperties()));
// initialize the browser
$browser = $this->getBrowser();
}
示例5: __construct
/**
* Constructor activating the default information of the class
*
* @access protected
*/
public function __construct()
{
parent::__construct();
$engine = $this->getEngine();
if (!$engine) {
self::error('No Spellchecker Engine available');
}
$request = WFRequest::getInstance();
// Setup plugin XHR callback functions
$request->setRequest(array($engine, 'checkWords'));
$request->setRequest(array($engine, 'getSuggestions'));
$request->setRequest(array($engine, 'ignoreWord'));
$request->setRequest(array($engine, 'ignoreWords'));
$request->setRequest(array($engine, 'learnWord'));
$this->execute();
}
示例6:
/**
* Constructor activating the default information of the class
*
* @access protected
*/
function __construct()
{
parent::__construct();
$config = $this->getConfig();
$engine = $this->getEngine();
if (isset($config['general.remote_rpc_url'])) {
$this->remoteRPC();
}
$request = WFRequest::getInstance();
// Setup plugin XHR callback functions
$request->setRequest(array($engine, 'checkWords'));
$request->setRequest(array($engine, 'getSuggestions'));
$request->setRequest(array($engine, 'ignoreWord'));
$request->setRequest(array($engine, 'ignoreWords'));
$request->setRequest(array($engine, 'learnWord'));
$this->execute();
}
示例7:
/**
* Constructor activating the default information of the class
*
* @access protected
*/
function __construct()
{
parent::__construct();
$this->getBrowser('link');
$this->getSearch('link');
}
示例8: __construct
public function __construct()
{
parent::__construct(array('colorpicker' => true));
}
示例9: __construct
/**
* Constructor activating the default information of the class
*
* @access protected
*/
public function __construct()
{
parent::__construct();
$this->getLinks();
$this->getSearch('link');
}
示例10:
function __construct()
{
parent::__construct();
}
示例11:
/**
* Constructor activating the default information of the class
*
* @access protected
*/
function __construct()
{
parent::__construct();
$browser = $this->getBrowser();
}