/** * 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'))); }
/** * @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(); }
/** * 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(); }
/** * @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(); }
/** * 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(); }
/** * 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(); }
/** * Constructor activating the default information of the class * * @access protected */ function __construct() { parent::__construct(); $this->getBrowser('link'); $this->getSearch('link'); }
public function __construct() { parent::__construct(array('colorpicker' => true)); }
/** * Constructor activating the default information of the class * * @access protected */ public function __construct() { parent::__construct(); $this->getLinks(); $this->getSearch('link'); }
function __construct() { parent::__construct(); }
/** * Constructor activating the default information of the class * * @access protected */ function __construct() { parent::__construct(); $browser = $this->getBrowser(); }