public function rename($short_name)
    {
        unset($this->owner->elements[$this->short_name]);
        $this->name = $this->name.'_'.$short_name;
        $this->short_name = $short_name;

        if (!$this->auto_track_element) {
            $this->owner->elements[$short_name] = true;
        } else {
            $this->owner->elements[$short_name] = $this;
        }

        return $this;
    }
public function rename($short_name)
    {
        unset($this->owner->elements[$this->short_name]);
        $this->name = $this->name.'_'.$short_name;
        $this->short_name = $short_name;

        if (!$this->auto_track_element) {
            $this->owner->elements[$short_name] = true;
        } else {
            $this->owner->elements[$short_name] = $this;
        }

        return $this;
    }
public function rename ( $ short_name ) { unset ( $ this -> owner -> elements [ $ this -> short_name ] ) ; $ this -> name = $ this -> name . '_' . $ short_name ; $ this -> short_name = $ short_name ; if ( ! $ this -> auto_track_element ) { $ this -> owner -> elements [ $ short_name ] = true ; } else { $ this -> owner -> elements [ $ short_name ] = $ this ; } return $ this ; }
Names object accordingly. May not work on some objects.

@param string $short_name Short name of the child element

@return $this
Names object accordingly . May not work on some objects .