/**
  * Gets the XHTML representation of the element's closing tag
  *
  * @return string
  */
 protected function GetCloseTagXhtml()
 {
     # add internal buttons at the last possible stage before closing the form,
     # to ensure that all child controls have a chance to register their internal buttons
     $s_xhtml = $this->b_render_base_element ? parent::GetCloseTagXhtml() : '';
     if (count($this->a_internal_buttons)) {
         $this->a_internal_buttons = array_unique($this->a_internal_buttons);
         $o_internal = new TextBox($this->GetNamingPrefix() . 'InternalButtons', implode('; ', $this->a_internal_buttons));
         $o_internal->SetMode(TextBoxMode::Hidden());
         $s_xhtml = '<div>' . $o_internal->__toString() . '</div>' . $s_xhtml;
     }
     return $s_xhtml;
 }