/** * 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; }
/** * 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; }
/** * 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; }
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') { $feature = JRequest::getCmd('feature'); $append = parent::getRedirectToItemAppend($recordId, $urlVar); if ($feature) { $append .= '&feature=' . $feature; } return $append; }
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; }
/** * 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; }
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; }
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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
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; }
/** * 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; }
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; }
/** * 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.0.0 */ protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') { $append = parent::getRedirectToItemAppend($recordId, $urlVar); $jinput = JFactory::getApplication()->input; $itemID = $jinput->get('itid', 0, 'int'); $contentTypeID = $jinput->get('ctid', 0, 'int'); if (!$recordId && !$itemID && !$contentTypeID) { $jform = $jinput->get('jform', array(), 'array'); $itemID = JArrayHelper::getValue($jform, 'item_id', 0, 'int'); $contentTypeID = JArrayHelper::getValue($jform, 'content_type_id', 0, 'int'); } // Setup redirect info. if ($contentTypeID) { $append .= '&ctid=' . $contentTypeID; } if ($itemID) { $append .= '&itid=' . $itemID; } return $append; }
/** * 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. */ protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') { $append = parent::getRedirectToItemAppend($recordId, $urlVar); foreach ($this->allow_url_params as $param) { if (JRequest::getVar($param)) { $append .= "&{$param}=" . JRequest::getVar($param); } } return $append; }
/** * 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 = 'id') { $app = JFactory::getApplication(); $append = parent::getRedirectToItemAppend($recordId, $urlVar); $map = $app->input->getVar('map'); if (empty($map)) { $form = $app->input->getVar('jform'); $map = $form['map']; } $append .= '&map=' . $map; return $append; }
/** * Gets the URL arguments to append to an item redirect. * * @param int $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 1.6 */ protected function getRedirectToItemAppend($recordId = null, $key = 'lang_id') { return parent::getRedirectToItemAppend($recordId, $key); }
/** * 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 = null) { $append = parent::getRedirectToItemAppend($recordId, $urlVar); $itemId = JRequest::getInt('Itemid'); $return = $this->getReturnPage(); if ($itemId) { $append .= '&Itemid=' . $itemId; } if ($return) { $append .= '&return=' . base64_encode($return); } return $append; }
/** * 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 = null, $urlVar = 'id'); $id = $this->input->get('id', 0, 'int'); if ($id) { $append .= "&id=" . $id; } $component = $this->input->get('component', 0, 'int'); if ($component) { $append .= "&component=" . $component; } return $append; }
/** * 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 = 'id') { // Get the infos $input = JFactory::getApplication()->input; $client = $input->get('client', ''); if (empty($client)) { $select = $input->get('filters', array(), 'array'); $client = isset($select['select']['client']) ? $select['select']['client'] : 'site'; } if (empty($client)) { $data = $input->get('jform', array(), 'array'); $client = isset($data['client']) ? $data['client'] : 'site'; } if (empty($client)) { $client = 'site'; } $tag = $input->get('tag', ''); if (empty($tag)) { $tag = isset($data['tag']) ? $data['tag'] : ''; } // Get the append string $append = parent::getRedirectToItemAppend($recordId, $urlVar); $append .= '&client=' . $client . '&tag=' . $tag; return $append; }
/** * 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 = 'id') { // Get the infos $client = JRequest::getVar('client', '', 'default', 'cmd'); if (empty($client)) { $select = JRequest::getVar('filters', array(), 'default', 'array'); $client = isset($select['select']['client']) ? $select['select']['client'] : 'site'; } if (empty($client)) { $data = JRequest::getVar('jform', array(), 'default', 'array'); $client = isset($data['client']) ? $data['client'] : 'site'; } if (empty($client)) { $client = 'site'; } $tag = JRequest::getVar('tag', '', 'default', 'cmd'); if (empty($tag)) { $tag = isset($data['tag']) ? $data['tag'] : ''; } // Get the append string $append = parent::getRedirectToItemAppend($recordId, $urlVar); $append .= '&client=' . $client . '&tag=' . $tag; return $append; }
/** * 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. */ protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') { $append = parent::getRedirectToItemAppend($recordId, $urlVar); $return = $this->input->get('return'); if ($return) { $append .= '&return=' . $return; } return $append; }
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') { $append = parent::getRedirectToItemAppend($recordId, $urlVar); $app = JFactory::getApplication(); if ($app->input->getInt('parent_id', 0)) { $append .= '&parent_id=' . $app->input->getInt('parent_id', 0); } return $append; }
/** * 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') { $append = parent::getRedirectToItemAppend($recordId); $append .= '&extension=' . $this->extension; return $append; }
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') { $append = parent::getRedirectToItemAppend($recordId); $append .= '&context=' . $this->internalContext; return $append; }