當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。