本文整理匯總了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();
}