/**
  * Create the snippets content
  *
  * This is a stub function either override getHtmlOutput() or override render()
  *
  * @param \Zend_View_Abstract $view Just in case it is needed here
  * @return \MUtil_Html_HtmlInterface Something that can be rendered
  */
 public function getHtmlOutput(\Zend_View_Abstract $view)
 {
     $table = parent::getHtmlOutput($view);
     $table->getOnEmpty()->class = 'centerAlign';
     if (($this->containingId || $this->keyboard) && !self::$keyboardUsed) {
         // Assign keyboard tracking only once
         self::$keyboardUsed = true;
         $this->applyHtmlAttributes($table);
         // If we are already in a containing div it is simple
         if ($this->containingId) {
             return array($table, new \Gems_JQuery_TableRowKeySelector($this->containingId));
         }
         // Create a new containing div
         $div = \MUtil_Html::create()->div(array('id' => 'keys_target', 'class' => 'table-container'), $table);
         return array($div, new \Gems_JQuery_TableRowKeySelector($div));
     } else {
         return $table;
     }
 }
 /**
  * Create the snippets content
  *
  * This is a stub function either override getHtmlOutput() or override render()
  *
  * @param \Zend_View_Abstract $view Just in case it is needed here
  * @return \MUtil_Html_HtmlInterface Something that can be rendered
  */
 public function getHtmlOutput(\Zend_View_Abstract $view)
 {
     $table = parent::getHtmlOutput($view);
     $table->getOnEmpty()->class = 'centerAlign';
     if ($this->containingId || $this->keyboard) {
         $this->applyHtmlAttributes($table);
         $div = \MUtil_Html::create()->div(array('id' => $this->containingId ? $this->containingId : 'keys_target'), $table);
         if ($this->keyboard) {
             return array($div, new \Gems_JQuery_TableRowKeySelector($div));
         } else {
             return $div;
         }
     } else {
         return $table;
     }
 }