本文整理汇总了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');
}
示例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');
}
示例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');
}
示例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;
}
}
示例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');
}
示例6:
/**
* Constructor
*
*/
function __construct()
{
parent::__construct();
// Register Extra task
$this->registerTask('delete', 'delete');
$this->registerTask('unfeatured', 'featured');
}
示例7: array
function __construct($config = array())
{
parent::__construct($config);
// Register Extra tasks
$this->registerTask('trash', 'remove');
$this->registerTask('delete', 'remove');
}
示例8:
function __construct()
{
parent::__construct();
$this->registerTask("edit", "editAuthor");
$this->registerTask("apply", "save");
$this->_model = $this->getModel('Customer');
}
示例9: __construct
public function __construct($config = array())
{
parent::__construct($config);
// Define standard task mappings.
// Value = 0
$this->registerTask('custom_iconx', 'custom_icon');
}
示例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');
}
示例11: __construct
/**
* Constructor
*/
public function __construct($config = array())
{
parent::__construct($config);
$this->registerTask('unpublish', 'publish');
$this->registerTask('trash', 'publish');
$this->registerTask('unfeatured', 'featured');
}
示例12: __construct
public function __construct($config = array())
{
parent::__construct($config);
// Define standard task mappings.
$this->registerTask('default', 'setDefault');
$this->registerTask('undefault', 'setDefault');
}
示例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');
}
示例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';
}
示例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');
}