本文整理汇总了PHP中JControllerForm::getRedirectToItemAppend方法的典型用法代码示例。如果您正苦于以下问题:PHP JControllerForm::getRedirectToItemAppend方法的具体用法?PHP JControllerForm::getRedirectToItemAppend怎么用?PHP JControllerForm::getRedirectToItemAppend使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JControllerForm
的用法示例。
在下文中一共展示了JControllerForm::getRedirectToItemAppend方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getRedirectToItemAppend
/**
* Gets the URL arguments to append to an item redirect.
*
* @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id.
*
* @return string The arguments to append to the redirect URL.
*
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$fid = $fid = $this->input->getInt('fid', 0);
$append = parent::getRedirectToItemAppend($recordId);
$append .= '&fid=' . $fid;
return $append;
}
示例2: getRedirectToItemAppend
/**
* Gets the URL arguments to append to an item redirect.
*
* @copyright
* @author RolandD
* @todo
* @see
* @access protected
* @param
* @return string with the append data
* @since 4.3
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$jinput = JFactory::getApplication()->input;
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append .= '&template_id=' . $jinput->get('template_id', 0, 'int');
return $append;
}
示例3: q1getRedirectToItemAppend
/**
* Gets the URL arguments to append to an item redirect.
*
* @param int $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id.
*
* @return string The arguments to append to the redirect URL.
*/
protected function q1getRedirectToItemAppend($recordId = null, $urlVar = null)
{
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$itemId = JRequest::getInt('Itemid');
if ($itemId) {
$append .= '&Itemid=' . $itemId;
}
return $append;
}
示例4: getRedirectToItemAppend
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$feature = JRequest::getCmd('feature');
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
if ($feature) {
$append .= '&feature=' . $feature;
}
return $append;
}
示例5: getRedirectToItemAppend
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$app = JFactory::getApplication();
if ($user_id = $app->input->get('user_id')) {
$append .= '&user_id=' . (int) $user_id;
}
return $append;
}
示例6: getRedirectToItemAppend
/**
* Gets the URL arguments to append to an item redirect.
*
* @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id.
*
* @return string The arguments to append to the redirect URL.
*
* @see JControllerForm::getRedirectToItemAppend
*
* @since 2.0.0
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$plugin = JFactory::getApplication()->input->get('plugin', '');
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
if (!empty($plugin)) {
$append .= '&plugin=' . $plugin;
}
return $append;
}
示例7: getRedirectToItemAppend
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$country_id = JFactory::getApplication()->input->get('country_id');
if ($country_id) {
$append .= '&country_id=' . $country_id;
}
return $append;
}
示例8: getRedirectToItemAppend
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$extra_id = JFactory::getApplication()->input->get('extra_id', 0, 'int');
if ($extra_id) {
$append .= '&extra_id=' . $extra_id;
}
return $append;
}
示例9: getRedirectToItemAppend
/**
* Gets the URL arguments to append to an item redirect.
*
* @param integer $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id.
*
* @return string The arguments to append to the redirect URL.
*
* @since 12.2
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append .= "&client=" . $this->input->get("client");
$append .= "&type=" . $this->input->get("type");
$append .= "&name=" . $this->input->get("name");
$append .= "&path=" . $this->input->get("path");
return $append;
}
示例10: getRedirectToItemAppend
/**
* Gets the URL arguments to append to an item redirect.
*
* @param integer $recordId The primary key id for the item.
* @param string $key The name of the primary key variable.
*
* @return string The arguments to append to the redirect URL.
*
* @since 2.5
*/
protected function getRedirectToItemAppend($recordId = null, $key = 'id')
{
$append = parent::getRedirectToItemAppend($recordId, $key);
$userId = JFactory::getApplication()->input->get('u_id', 0, 'int');
if ($userId) {
$append .= '&u_id=' . $userId;
}
return $append;
}
示例11: getRedirectToItemAppend
/**
* Gets the URL arguments to append to an item redirect
*
* @param int $recordId The primary key id for the item
* @param string $urlVar The name of the URL variable for the id
*
* @return string The arguments to append to the redirect URL
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = null)
{
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
if ($itemId = JFactory::getApplication()->input->get('Itemid', 0, 'int')) {
$append .= '&Itemid=' . $itemId;
}
if ($return = $this->getReturnPage()) {
$append .= '&return=' . base64_encode($return);
}
return $append;
}
示例12: getRedirectToItemAppend
/**
* Gets the URL arguments to append to an item redirect.
*
* @param int $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id.
*
* @return string The arguments to append to the redirect URL.
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
// Get the infos
$client = JRequest::getVar('client', '', 'default', 'cmd');
$tag = JRequest::getVar('tag', '', 'default', 'cmd');
$filename = JRequest::getVar('filename', '', 'default', 'cmd');
$storage = JRequest::getVar('storage', '', 'default', 'cmd');
// Get the append string
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append .= '&client=' . $client . '&tag=' . $tag . '&filename=' . $filename . '&storage=' . $storage;
return $append;
}
示例13: getRedirectToItemAppend
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$user_id = JFactory::getApplication()->input->get('user_id', 0, 'int');
if ($user_id) {
$append .= '&user_id=' . $user_id;
}
$tmpl = JFactory::getApplication()->input->get('tmpl', '');
if ($tmpl == 'component') {
$append .= '&tmpl=component';
}
return $append;
}
示例14: getRedirectToItemAppend
/**
* Gets the URL arguments to append to an item redirect.
*
* @param int $recordId The primary key id for the item.
* @param string $urlVar The name of the URL variable for the id.
*
* @return string The arguments to append to the redirect URL.
* @since 1.6
*/
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
{
// Get the infos
$input = JFactory::getApplication()->input;
$client = $input->get('client', '');
$tag = $input->get('tag', '');
$filename = $input->get('filename', '');
$storage = $input->get('storage', '');
// Get the append string
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$append .= '&client=' . $client . '&tag=' . $tag . '&filename=' . $filename . '&storage=' . $storage;
return $append;
}
示例15: getRedirectToItemAppend
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'user_id')
{
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
$user_id = JFactory::getApplication()->input->get('id', 0, 'int');
$temp_id = JFactory::getApplication()->input->get('temp_id', 0, 'int');
if ($user_id) {
$append .= '&user_id=' . $user_id;
}
$model = $this->getModel();
if ($temp_id = $model->getTempId()) {
$append .= '&temp_id=' . $temp_id;
}
return $append;
}