AbstractObject::rename PHP Method

rename() public method

Names object accordingly. May not work on some objects.
public rename ( string $short_name )
$short_name string Short name of the child element
    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;
    }