class Event

Default event for Guzzle notifications

Hierarchy

  • class \Symfony\Component\EventDispatcher\Event
    • class \Guzzle\Common\Event implements \Guzzle\Common\ArrayAccess, \Guzzle\Common\IteratorAggregate

Expanded class hierarchy of Event

4 files declare their use of Event
IoEmittingEntityBody.php in drupal/core/vendor/guzzle/http/Guzzle/Http/IoEmittingEntityBody.php
RedirectPlugin.php in drupal/core/vendor/guzzle/http/Guzzle/Http/RedirectPlugin.php
Request.php in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
SimpletestHttpRequestSubscriber.php in drupal/core/lib/Drupal/Core/Http/Plugin/SimpletestHttpRequestSubscriber.php
Contains Drupal\Core\Http\Plugin\SimpletestHttpRequestSubscriber
8 string references to 'Event'
GenericEventTest::setUp in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/GenericEventTest.php
Prepares the environment before running a test.
GenericEventTest::testConstruct in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/GenericEventTest.php
GenericEventTest::testGetArgument in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/GenericEventTest.php
GenericEventTest::testGetArguments in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/GenericEventTest.php
Tests Event->getArgs()
GenericEventTest::testHasIterator in drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/GenericEventTest.php

... See full list

File

drupal/core/vendor/guzzle/common/Guzzle/Common/Event.php, line 10

Namespace

Guzzle\Common
View source
class Event extends SymfonyEvent implements \ArrayAccess, \IteratorAggregate {

  /**
   * @var array
   */
  private $context;

  /**
   * Constructor
   *
   * @param array $context Contextual information
   */
  public function __construct(array $context = array()) {
    $this->context = $context;
  }

  /**
   * {@inheritdoc}
   */
  public function getIterator() {
    return new \ArrayIterator($this->context);
  }

  /**
   * {@inheritdoc}
   */
  public function offsetGet($offset) {
    return array_key_exists($offset, $this->context) ? $this->context[$offset] : null;
  }

  /**
   * {@inheritdoc}
   */
  public function offsetSet($offset, $value) {
    $this->context[$offset] = $value;
  }

  /**
   * {@inheritdoc}
   */
  public function offsetExists($offset) {
    return array_key_exists($offset, $this->context);
  }

  /**
   * {@inheritdoc}
   */
  public function offsetUnset($offset) {
    unset($this->context[$offset]);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Event::$context private property
Event::$dispatcher private property
Event::$name private property
Event::$propagationStopped private property
Event::getDispatcher public function Returns the EventDispatcher that dispatches this Event
Event::getIterator public function
Event::getName public function Gets the event's name.
Event::isPropagationStopped public function Returns whether further event listeners should be triggered.
Event::offsetExists public function
Event::offsetGet public function
Event::offsetSet public function
Event::offsetUnset public function
Event::setDispatcher public function Stores the EventDispatcher that dispatches this Event
Event::setName public function Sets the event's name property.
Event::stopPropagation public function Stops the propagation of the event to further event listeners.
Event::__construct public function Constructor