Ejemplo n.º 1
0
 /**
  * Genera el html de un botón específico
  * @param toba_evento_usuario $evento
  * @param boolean $retornar Define si devuelve como resultado el HTML o lo 'imprime'
  */
 protected function generar_html_boton($evento, $retornar = false)
 {
     $salida = '';
     //--- Link al editor
     if (toba_editor::modo_prueba()) {
         $salida .= toba_editor::get_vinculo_evento($this->_id, $this->_info['clase_editor_item'], $evento->get_id()) . "\n";
     }
     //--- Utilidades de impresion
     if ($evento->posee_accion_imprimir()) {
         $this->_utilizar_impresion_html = true;
     }
     if (!$evento->esta_anulado()) {
         $salida .= $evento->get_html($this->_submit, $this->objeto_js, $this->_id);
     }
     if ($retornar) {
         return $salida;
     } else {
         echo $salida;
     }
 }