Exemplo n.º 1
0
 /**
  * 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');
     $append .= "&id=" . $this->input->get("id", 0, "int");
     $component = $this->input->get('component', 0, 'int');
     if ($component) {
         $append .= "&component=" . $component;
     }
     $table = $this->input->get('table', 0, 'int');
     if ($table) {
         $append .= "&table=" . $table;
     }
     return $append;
 }
Exemplo n.º 2
0
 /**
  * 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);
     $item_id = $this->input->get('item_id', 0, 'int');
     if (!empty($item_id)) {
         $append .= "&item_id=" . $item_id;
     }
     $type = $this->input->get('type', '', 'string');
     if (!empty($type)) {
         $append .= "&type=" . $type;
     }
     $name = $this->input->get('name', '', 'string');
     if (!empty($name)) {
         $append .= "&name=" . $name;
     }
     return $append;
 }
Exemplo n.º 3
0
 /**
  * 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;
     }
     $parent_id = $this->input->get('parent_id', 0, 'int');
     if ($parent_id) {
         $append .= "&parent_id=" . $parent_id;
     }
     $tag = $this->input->get('tag', '', 'string');
     if ($tag != "") {
         $append .= "&tag=" . $tag;
     }
     $relation = $this->input->get('relation', '', 'string');
     if ($relation != "") {
         $append .= "&relation=" . $relation;
     }
     return $append;
 }