KumbiaPHP  beta2
Framework PHP
 Todo Estructuras de Datos Namespaces Archivos Funciones Variables Páginas
Métodos públicos estáticos | Atributos públicos estáticos | Atributos protegidos estáticos
Referencia de la Clase Event

Métodos públicos estáticos

static hasHandler ($event)
 
static bind ($event, $handler)
 
static before ($event, $handler1, $handler2)
 
static after ($event, $handler1, $handler2)
 
static unbind ($event, $handler=false)
 
static replace ($event, $handler1, $handler2)
 
static trigger ($event, $args=array())
 

Atributos públicos estáticos

static $data = null
 

Atributos protegidos estáticos

static $_events = array()
 

Descripción detallada

Definición en la línea 31 del archivo event.php.

Documentación de las funciones miembro

static after (   $event,
  $handler1,
  $handler2 
)
static

Enlaza en el evento el handler2 despues del handler1

Parámetros
string$eventevento
mixed$handler1
mixed$handler2

Definición en la línea 99 del archivo event.php.

static before (   $event,
  $handler1,
  $handler2 
)
static

Enlaza en el evento el handler2 antes del handler1

Parámetros
string$eventevento
mixed$handler1
mixed$handler2

Definición en la línea 79 del archivo event.php.

static bind (   $event,
  $handler 
)
static

Enlaza un handler con un evento

Parámetros
string$eventevento
mixed$handlerretrollamada

Definición en la línea 64 del archivo event.php.

static hasHandler (   $event)
static

Verifica si un evento ya tiene manejador

Parámetros
string$event
Devuelve
boolean

Definición en la línea 53 del archivo event.php.

static replace (   $event,
  $handler1,
  $handler2 
)
static

Remplaza un handler por otro

Parámetros
string$eventevento
mixed$handler1handler a remplazar
mixed$handler2nuevo handler

Definición en la línea 136 del archivo event.php.

static trigger (   $event,
  $args = array() 
)
static

Ejecuta los handlers asociados al evento

Parámetros
string$eventevento
array$argsargumentos
Devuelve
mixed

Definición en la línea 155 del archivo event.php.

static unbind (   $event,
  $handler = false 
)
static

Desenlaza los manejadores

Parámetros
string$eventevento
mixed$handlermanejador

Definición en la línea 118 del archivo event.php.

Documentación de los campos

$_events = array()
staticprotected

Definición en la línea 45 del archivo event.php.

$data = null
static

Definición en la línea 39 del archivo event.php.


La documentación para esta clase fue generada a partir del siguiente fichero: