/**
  * @access	protected
  */
 function __construct()
 {
     // Call parent
     parent::__construct();
     $this->_base = $this->getRootDir();
     $this->plugin->type = 'manager';
 }
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     // check the user/group has editor permissions
     $this->checkPlugin() or die(JError::raiseError(403, JText::_('Access Forbidden')));
     // Setup XHR callback functions
     $this->setXHR(array($this, 'getLinks'));
     // Set javascript file array
     $this->script(array('tiny_mce_popup'), 'tiny_mce');
     $this->script(array('mootools'), 'media');
     $this->script(array('tiny_mce_utils', 'jce', 'plugin', 'window', 'tree'), 'libraries');
     $this->script(array('advlink'), 'plugins');
     // Set css file array
     $this->css(array('plugin', 'tree'), 'libraries');
     $this->css(array('advlink'), 'plugins');
     $this->css(array('window', 'dialog'), 'skins');
     $this->loadLanguages();
     $extensions = $this->loadExtensions('links');
     foreach ($extensions as $extension) {
         if ($extension) {
             if (is_array($extension)) {
                 foreach ($extension as $sibling) {
                     $this->_linkextensions[] = $sibling;
                 }
             } else {
                 $this->_linkextensions[] = $extension;
             }
         }
     }
 }
Exemplo n.º 3
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     // check the user/group has editor permissions
     $this->checkPlugin() or die(JError::raiseError(403, JText::_('Restricted Access')));
     $this->setXHR(array($this, 'showPreview'));
     $this->processXHR();
     // reset scripts
     $this->scripts = array();
     // Set javascript file array
     $this->script(array('tiny_mce_popup'), 'tiny_mce');
     $this->script(array('mootools', 'jce', 'plugin'), 'libraries');
     $this->script(array('preview'), 'plugins');
     // reset styles
     $this->styles = array();
     $this->css(array('preview'), 'plugins');
     $this->loadLanguages();
 }
Exemplo n.º 4
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     // check the user/group has editor permissions
     $this->checkPlugin() or die(JError::raiseError(403, JText::_('ERROR_403')));
     $config =& $this->getConfig();
     $engine =& $this->getEngine();
     if (isset($config['general.remote_rpc_url'])) {
         $this->remoteRPC();
     }
     // Setup plugin XHR callback functions
     $this->setXHR(array($engine, 'checkWords'));
     $this->setXHR(array($engine, 'getSuggestions'));
     $this->setXHR(array($engine, 'ignoreWord'));
     $this->setXHR(array($engine, 'ignoreWords'));
     $this->setXHR(array($engine, 'learnWord'));
     $this->processXHR();
 }
Exemplo n.º 5
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     // check the user/group has editor permissions
     $this->checkPlugin() or die(JError::raiseError(403, JText::_('Restricted Access')));
 }