Ejemplo n.º 1
0
 function conf_evt__cuadro__eliminar(toba_evento_usuario $evt)
 {
     $usuario = $evt->get_parametros();
     if ($usuario == toba::usuario()->get_id()) {
         $evt->anular();
     }
 }
Ejemplo n.º 2
0
 function conf_evt__cuadro__configurar(toba_evento_usuario $evt, $fila)
 {
     $existe = false;
     try {
         $existe = $this->existe_auditoria($evt->get_parametros());
     } catch (toba_error $e) {
         toba::logger()->debug($e->getMessage());
     }
     if (!$existe) {
         $evt->anular();
     }
 }
Ejemplo n.º 3
0
 /**
  * Permite configurar el evento por fila.
  * Útil para decidir si el evento debe estar disponible o no de acuerdo a los datos de la fila
  * [wiki:Referencia/Objetos/ei_cuadro#Filtradodeeventosporfila Ver más]
  */
 function conf_evt__cuadro__multiple_con_etiq(toba_evento_usuario $evento, $fila)
 {
     if ($this->datos[$fila]['i'] % 2 == 0) {
         $evento->anular();
     }
 }