PHP 클래스 Webiny\Component\EventManager\Event

Each time an event is fired, an instance of Event class is passed to handlers. By extending this class you can implement your own event class and expand it with whatever functionality you might need.
상속: implements ArrayAccess, implements IteratorAggregate, use trait Webiny\Component\StdLib\StdLibTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $eventData = null )
__get ( string $name ) : mixed Access internal data as if it was a real object
__isset ( string $name ) : boolean Override __isset
__set ( string $name, mixed $value ) : void Set internal data as if it was a real object
__unset ( string $name ) : void Override __unset
get ( string $name, mixed $default = null ) : mixed Get value or return $default if there is no element set.
getIterator ( ) : Traversable (PHP 5 >= 5.0.0)
Retrieve an external iterator
isPropagationStopped ( ) : boolean Check if propagation for this event is stopped
offsetExists ( mixed $offset ) : boolean (PHP 5 >= 5.0.0)
Whether a offset exists
offsetGet ( mixed $offset ) : mixed (PHP 5 >= 5.0.0)
Offset to retrieve
offsetSet ( mixed $offset, mixed $value ) : void (PHP 5 >= 5.0.0)
Offset to set
offsetUnset ( mixed $offset ) : void (PHP 5 >= 5.0.0)
Offset to unset
stopPropagation ( ) : void Stops the propagation of the event to further event listeners.
toArray ( ) : array Get event data in form of an array

메소드 상세

__construct() 공개 메소드

public __construct ( $eventData = null )

__get() 공개 메소드

Access internal data as if it was a real object
public __get ( string $name ) : mixed
$name string
리턴 mixed

__isset() 공개 메소드

Override __isset
public __isset ( string $name ) : boolean
$name string
리턴 boolean

__set() 공개 메소드

Set internal data as if it was a real object
public __set ( string $name, mixed $value ) : void
$name string
$value mixed
리턴 void

__unset() 공개 메소드

Override __unset
public __unset ( string $name ) : void
$name string
리턴 void

get() 공개 메소드

Get value or return $default if there is no element set.
public get ( string $name, mixed $default = null ) : mixed
$name string
$default mixed
리턴 mixed Config value or default value

getIterator() 공개 메소드

(PHP 5 >= 5.0.0)
Retrieve an external iterator
public getIterator ( ) : Traversable
리턴 Traversable An instance of an object implementing Iterator or Traversable

isPropagationStopped() 공개 메소드

Check if propagation for this event is stopped
public isPropagationStopped ( ) : boolean
리턴 boolean

offsetExists() 공개 메소드

(PHP 5 >= 5.0.0)
Whether a offset exists
public offsetExists ( mixed $offset ) : boolean
$offset mixed

An offset to check for.

리턴 boolean true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

offsetGet() 공개 메소드

(PHP 5 >= 5.0.0)
Offset to retrieve
public offsetGet ( mixed $offset ) : mixed
$offset mixed

The offset to retrieve.

리턴 mixed Can return all value types.

offsetSet() 공개 메소드

(PHP 5 >= 5.0.0)
Offset to set
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed

The offset to assign the value to.

$value mixed

The value to set.

리턴 void

offsetUnset() 공개 메소드

(PHP 5 >= 5.0.0)
Offset to unset
public offsetUnset ( mixed $offset ) : void
$offset mixed
리턴 void

stopPropagation() 공개 메소드

After stopPropagation() is called, no other listeners will be processed.
public stopPropagation ( ) : void
리턴 void

toArray() 공개 메소드

Get event data in form of an array
public toArray ( ) : array
리턴 array Event data array