本文整理汇总了PHP中JControllerForm::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP JControllerForm::__construct方法的具体用法?PHP JControllerForm::__construct怎么用?PHP JControllerForm::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JControllerForm
的用法示例。
在下文中一共展示了JControllerForm::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
/**
* 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');
}
示例2: __construct
/**
* Constructor
*
*/
public function __construct($config = array())
{
parent::__construct($config);
// Register additional tasks
$this->registerTask('upload', 'save');
$this->registerTask('decline', 'approve');
}
示例3: __construct
public function __construct($config = array())
{
parent::__construct($config);
if (JDEBUG) {
JLog::addLogger(array('text_file' => 'com_usernotes.log.php'), JLog::ALL, array('com_usernotes'));
}
}
示例4: __construct
/**
*
* Class Constructor
*
* @param array $config An optional associative array of configuration settings.
* @return void
* @since 1.0
*/
public function __construct($config = array())
{
parent::__construct($config);
// Apply, Save & New, and Save As copy should be standard on forms.
$this->registerTask('savenclose', 'save');
$this->view_list = 'subscribers';
}
示例5: __construct
/**
* Constructor
*/
public function __construct($config = array())
{
parent::__construct($config);
$this->registerTask('apply', 'save');
$this->registerTask('save2new', 'save');
$this->registerTask('save2copy', 'save');
}
示例6: __construct
public function __construct($config = array())
{
parent::__construct($config);
$this->internalContext = $this->input->getCmd('context', 'com_content.article');
$parts = DPFieldsHelper::extract($this->internalContext);
$this->component = $parts ? $parts[0] : null;
}
示例7: __construct
/**
* Function that allows child controller access to model data after the data has been saved.
*
* @param JModelLegacy $model The data model object.
* @param array $validData The validated data.
*
* @return void
* @since 1.6
*/
public function __construct($config = array())
{
$this->view_item = 'agent';
$this->view_list = 'agents';
$this->context = 'customer';
return parent::__construct($config);
}
示例8: array
function __construct($config = array())
{
parent::__construct($config);
// Need to set list view to plural format in legacy/controllers/form/constructor with array('/is$/i', "ises")
// Or change like here
$this->view_list = $this->view_item . "es";
}
示例9: __construct
public function __construct($config = array())
{
parent::__construct($config);
$this->_app = JFactory::getApplication();
$this->_input = $this->_app->input;
$this->_config = JSNConfigHelper::get();
}
示例10: __construct
public function __construct($config = array())
{
$this->view_item = 'teruletiszervezetek';
$this->view_list = 'teruletiszervezeteks';
parent::__construct($config);
}
示例11:
/**
* Constructor
*
*/
function __construct()
{
parent::__construct();
// Register Extra task
$this->registerTask('apply', 'save');
$this->registerTask('add', 'edit');
}
示例12: __construct
/**
* Construct the controller
*
* @copyright
* @author RolandD
* @todo
* @see
* @access public
* @param
* @return
* @since 3.0
*/
public function __construct()
{
parent::__construct();
// Register some task
$this->registerTask('sortcategories', 'options');
$this->registerTask('icecatsettings', 'options');
}
示例13: __construct
/**
* Constructor
*
* @param array $config constructor parameters
*/
public function __construct($config = array())
{
parent::__construct($config);
// Initialise variables.
$app = JFactory::getApplication();
$input = $app->input;
// Get the id
$cid = $input->get('cid', array(), 'array');
$cid = count($cid) ? $cid[0] : '';
if (!empty($cid)) {
// From the packages view
$name = $cid;
$path = JPATH_COMPONENT_ADMINISTRATOR . '/packages/' . $name . '.xml';
$id = LocaliseHelper::getFileId($path);
} else {
// From the package view
$data = $input->get('jform', array(), 'array');
$id = $data['id'];
$name = $data['name'];
}
// Set the id, and path in the session
$app->setUserState('com_localise.edit.package.id', $id);
$app->setUserState('com_localise.package.name', $name);
// Set the id and unset the cid
if (!empty($id) && $input->get('task') == 'add') {
$input->set('task', 'edit');
}
$input->set('id', $id);
$input->set('cid', array());
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->_link = 'index.php?option=com_ninjarsssyndicator&view=feeds';
$this->registerTask('add', 'edit');
$this->registerTask('apply', 'save');
}
示例15: __construct
/**
* Constructor.
*
* @param array $config An optional associative array of configuration settings.
*
* @see JControllerLegacy
* @since 12.2
* @throws Exception
*/
public function __construct($config = array())
{
parent::__construct($config);
if ($this->input->get("component", 0, "int")) {
$this->view_list = "component";
}
}