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


PHP JControllerAdmin::__construct方法代码示例

本文整理汇总了PHP中JControllerAdmin::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP JControllerAdmin::__construct方法的具体用法?PHP JControllerAdmin::__construct怎么用?PHP JControllerAdmin::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JControllerAdmin的用法示例。


在下文中一共展示了JControllerAdmin::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     // Register Extra task
     $this->registerTask('setlinenumber', 'linenumber');
     $this->registerTask('disablelinenumber', 'linenumber');
 }
开发者ID:JKoelman,项目名称:JEM-3,代码行数:10,代码来源:cssmanager.php

示例2: __construct

 /**
  * Constructor
  *
  * @param	array	$config		An optional associative array of configuration settings.
  *
  * @since	1.0.1
  *
  * @see		JController
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Register Extra tasks
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
 }
开发者ID:RomanaBW,项目名称:BwPostman,代码行数:16,代码来源:mailinglists.php

示例3: __construct

 public function __construct($config = array())
 {
     parent::__construct($config);
     global $ext_name, $ext_name_com;
     $this->ext_name = $ext_name;
     $this->ext_name_com = JFactory::getApplication()->input->get('extension', $ext_name_com, 'string');
 }
开发者ID:JexyRu,项目名称:Ksenmart,代码行数:7,代码来源:ksencontroller.php

示例4: __construct

 /**
  * Constructor.
  *
  * @param    array    $config    An optional associative array of configuration settings.
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $app = JFactory::getApplication();
     if (!isset($config['model'])) {
         $config['model'] = $app->input->get('model', null, 'cmd');
     }
     if (!isset($config['limit'])) {
         $config['limit'] = $app->input->get('limit', 0, 'uint');
     }
     if (!isset($config['limitstart'])) {
         $config['limitstart'] = $app->input->get('limitstart', 0, 'uint');
     }
     if (!isset($config['total'])) {
         $config['total'] = $app->input->get('total', 0, 'uint');
     }
     $this->model = $config['model'];
     $this->limit = $config['limit'];
     $this->limitstart = $config['limitstart'];
     $this->total = $config['total'];
     // Validate requested model
     $valid_models = PFdatagenHelper::getModelList();
     if (!isset($valid_models[$this->model])) {
         $this->model = null;
     }
 }
开发者ID:beingsane,项目名称:Generator,代码行数:31,代码来源:generator.json.php

示例5: __construct

 /**
  * Constructor.
  *
  * @param	array	$config	An optional associative array of configuration settings.
  *
  * @return	ContactControllerContacts
  * @see		JController
  * @since	1.6
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('publish', 'publishField');
     $this->registerTask('unpublish', 'publishField');
     $this->registerTask('delete', 'deleteField');
 }
开发者ID:spiridonov-oa,项目名称:remontvolt,代码行数:16,代码来源:creativefields.php

示例6:

 /**
  * Constructor
  *
  */
 function __construct()
 {
     parent::__construct();
     // Register Extra task
     $this->registerTask('delete', 'delete');
     $this->registerTask('unfeatured', 'featured');
 }
开发者ID:ashanrupasinghe,项目名称:dnp,代码行数:11,代码来源:downloads.php

示例7: array

 function __construct($config = array())
 {
     parent::__construct($config);
     // Register Extra tasks
     $this->registerTask('trash', 'remove');
     $this->registerTask('delete', 'remove');
 }
开发者ID:ForAEdesWeb,项目名称:AEW4,代码行数:7,代码来源:geozones.php

示例8:

 function __construct()
 {
     parent::__construct();
     $this->registerTask("edit", "editAuthor");
     $this->registerTask("apply", "save");
     $this->_model = $this->getModel('Customer');
 }
开发者ID:Shtier,项目名称:digicom,代码行数:7,代码来源:customers.php

示例9: __construct

 public function __construct($config = array())
 {
     parent::__construct($config);
     // Define standard task mappings.
     // Value = 0
     $this->registerTask('custom_iconx', 'custom_icon');
 }
开发者ID:jputz12,项目名称:OneNow-Vshop,代码行数:7,代码来源:easyquickicons.php

示例10: __construct

 /**
  * Constructor.
  *
  * @param   array  $config  An optional associative array of configuration settings.
  *
  * @return  UsersControllerUsers
  *
  * @since   1.6
  * @see     JController
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     JFactory::getLanguage()->load('com_users');
     $this->registerTask('block', 'changeBlock');
     $this->registerTask('unblock', 'changeBlock');
 }
开发者ID:Glonum,项目名称:tz_portfolio,代码行数:17,代码来源:users.php

示例11: __construct

 /**
  * Constructor
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('unpublish', 'publish');
     $this->registerTask('trash', 'publish');
     $this->registerTask('unfeatured', 'featured');
 }
开发者ID:lepca,项目名称:OSMap,代码行数:10,代码来源:sitemaps.php

示例12: __construct

 public function __construct($config = array())
 {
     parent::__construct($config);
     // Define standard task mappings.
     $this->registerTask('default', 'setDefault');
     $this->registerTask('undefault', 'setDefault');
 }
开发者ID:sansandeep143,项目名称:av,代码行数:7,代码来源:orderstatuses.php

示例13:

 /**
  * constructor (registers additional tasks to methods)
  * @return void
  */
 function __construct()
 {
     parent::__construct();
     // Set reference to parameters
     $this->params = JComponentHelper::getParams('com_chessvn');
     //$dummy = $this->params->get('parm_text');
 }
开发者ID:khangcodt,项目名称:nvssehcweb,代码行数:11,代码来源:gamechatlist.php

示例14: __construct

 /**
  * Class constructor. Register extra tasks
  *
  * @param   array  $config  A named array of configuration variables.
  *
  * @since	1.6
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $fid = JFactory::getApplication()->input->getInt('fid', 0);
     $this->view_list = 'visfields&fid=' . $fid;
     $this->text_prefix = 'COM_VISFORMS_FIELD';
 }
开发者ID:shamusdougan,项目名称:GDMCWebsite,代码行数:14,代码来源:visfields.php

示例15: __construct

 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('view_torrents', 'changeTypeYes');
     $this->registerTask('no_view_torrents', 'changeTypeNo');
     $this->registerTask('edit_torrents', 'changeTypeYes');
     $this->registerTask('no_edit_torrents', 'changeTypeNo');
     $this->registerTask('delete_torrents', 'changeTypeYes');
     $this->registerTask('no_delete_torrents', 'changeTypeNo');
     $this->registerTask('upload_torrents', 'changeTypeYes');
     $this->registerTask('no_upload_torrents', 'changeTypeNo');
     $this->registerTask('download_torrents', 'changeTypeYes');
     $this->registerTask('no_download_torrents', 'changeTypeNo');
     $this->registerTask('can_leech', 'changeTypeYes');
     $this->registerTask('no_can_leech', 'changeTypeNo');
     $this->registerTask('view_comments', 'changeTypeYes');
     $this->registerTask('no_view_comments', 'changeTypeNo');
     $this->registerTask('write_comments', 'changeTypeYes');
     $this->registerTask('no_write_comments', 'changeTypeNo');
     $this->registerTask('edit_comments', 'changeTypeYes');
     $this->registerTask('no_edit_comments', 'changeTypeNo');
     $this->registerTask('delete_comments', 'changeTypeYes');
     $this->registerTask('no_delete_comments', 'changeTypeNo');
     $this->registerTask('autopublish_comments', 'changeTypeYes');
     $this->registerTask('no_autopublish_comments', 'changeTypeNo');
     $this->registerTask('state', 'changeTypeYes');
     $this->registerTask('no_state', 'changeTypeNo');
 }
开发者ID:solderzzc,项目名称:com_tracker,代码行数:28,代码来源:groups.php


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