[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/zendframework/zend-eventmanager/src/ -> Event.php (summary)

Zend Framework (http://framework.zend.com/)

Copyright: Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
File Size: 209 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Event:: (11 methods):
  __construct()
  getName()
  getTarget()
  setParams()
  getParams()
  getParam()
  setName()
  setTarget()
  setParam()
  stopPropagation()
  propagationIsStopped()


Class: Event  - X-Ref

Representation of an event

Encapsulates the target context and parameters passed, and provides some
behavior for interacting with the event manager.
__construct($name = null, $target = null, $params = null)   X-Ref
Constructor

Accept a target and its parameters.

param: string $name Event name
param: string|object $target
param: array|ArrayAccess $params

getName()   X-Ref
Get event name

return: string

getTarget()   X-Ref
Get the event target

This may be either an object, or the name of a static method.

return: string|object

setParams($params)   X-Ref
Set parameters

Overwrites parameters

param: array|ArrayAccess|object $params
return: Event

getParams()   X-Ref
Get all parameters

return: array|object|ArrayAccess

getParam($name, $default = null)   X-Ref
Get an individual parameter

If the parameter does not exist, the $default value will be returned.

param: string|int $name
param: mixed $default
return: mixed

setName($name)   X-Ref
Set the event name

param: string $name
return: Event

setTarget($target)   X-Ref
Set the event target/context

param: null|string|object $target
return: Event

setParam($name, $value)   X-Ref
Set an individual parameter to a value

param: string|int $name
param: mixed $value
return: Event

stopPropagation($flag = true)   X-Ref
Stop further event propagation

param: bool $flag
return: void

propagationIsStopped()   X-Ref
Is propagation stopped?

return: bool



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1