Phergie_Event_Handler::getEvents PHP Method

getEvents() public method

Returns the current event queue.
public getEvents ( ) : array
return array Enumerated array of Phergie_Event_Command objects
    public function getEvents()
    {
        return $this->events;
    }

Usage Example

Example #1
0
 /**
  * Gets the events added to the handler by the plugin
  * @param string $type
  * @return array | null
  */
 public function getResponseEvents($type = null)
 {
     if (is_string($type) && strlen($type) > 0) {
         return $this->handler->getEventsOfType($type);
     }
     return $this->handler->getEvents();
 }
All Usage Examples Of Phergie_Event_Handler::getEvents