protected function ensureAppended()
    {
        if (!$this->_appended) {
            $this->_parentElement->getDOM()->appendChild($this->_element);
            $this->_appended = true;
            $this->_parentElement->ensureAppended();
        }
    }
protected function ensureAppended()
    {
        if (!$this->_appended) {
            $this->_parentElement->getDOM()->appendChild($this->_element);
            $this->_appended = true;
            $this->_parentElement->ensureAppended();
        }
    }
protected function ensureAppended ( ) { if ( ! $ this -> _appended ) { $ this -> _parentElement -> getDOM ( ) -> appendChild ( $ this -> _element ) ; $ this -> _appended = true ; $ this -> _parentElement -> ensureAppended ( ) ; } }
Appends this element to its parent if necessary.

@return void
Appends this element to its parent if necessary .