Ejemplo n.º 1
0
 /**
  * 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')));
 }
Ejemplo n.º 2
0
    /**
     * @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();
    }
Ejemplo n.º 3
0
Archivo: preview.php Proyecto: 01J/topm
 /**
  * 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();
 }
Ejemplo n.º 4
0
 /**
  * @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();
 }
Ejemplo n.º 5
0
 /**
  * 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();
 }
Ejemplo n.º 6
0
 /**
  * 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();
 }
Ejemplo n.º 7
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     $this->getBrowser('link');
     $this->getSearch('link');
 }
Ejemplo n.º 8
0
 public function __construct()
 {
     parent::__construct(array('colorpicker' => true));
 }
Ejemplo n.º 9
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 public function __construct()
 {
     parent::__construct();
     $this->getLinks();
     $this->getSearch('link');
 }
Ejemplo n.º 10
0
 function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 11
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     $browser = $this->getBrowser();
 }