当前位置: 首页>>代码示例>>PHP>>正文


PHP WFEditorPlugin::__construct方法代码示例

本文整理汇总了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')));
 }
开发者ID:neoandrew1000,项目名称:crao_journal,代码行数:12,代码来源:link.php

示例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();
    }
开发者ID:networksoft,项目名称:seekerplus2.com,代码行数:32,代码来源:manager.php

示例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();
 }
开发者ID:01J,项目名称:topm,代码行数:13,代码来源:preview.php

示例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();
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:16,代码来源:manager.php

示例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();
 }
开发者ID:grlf,项目名称:eyedock,代码行数:21,代码来源:spellchecker.php

示例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();
 }
开发者ID:andreassetiawanhartanto,项目名称:PDKKI,代码行数:22,代码来源:spellchecker.php

示例7:

 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     $this->getBrowser('link');
     $this->getSearch('link');
 }
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:11,代码来源:link.php

示例8: __construct

 public function __construct()
 {
     parent::__construct(array('colorpicker' => true));
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:4,代码来源:table.php

示例9: __construct

 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 public function __construct()
 {
     parent::__construct();
     $this->getLinks();
     $this->getSearch('link');
 }
开发者ID:grlf,项目名称:eyedock,代码行数:11,代码来源:link.php

示例10:

 function __construct()
 {
     parent::__construct();
 }
开发者ID:01J,项目名称:bealtine,代码行数:4,代码来源:xhtmlxtras.php

示例11:

 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     $browser = $this->getBrowser();
 }
开发者ID:optimosolution,项目名称:marhk,代码行数:10,代码来源:link.php


注:本文中的WFEditorPlugin::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。