Inheritance diagram for PEIP_Pipe:

Public Member Functions | |
| setName ($name) | |
| getName () | |
| send (PEIP_INF_Message $message, $timeout=-1) | |
| subscribe (PEIP_INF_Handler $handler) | |
| unsubscribe (PEIP_INF_Handler $handler) | |
| setMessageDispatcher (PEIP_INF_Dispatcher $dispatcher, $transferListeners=true) | |
| getMessageDispatcher () | |
| connect ($name, PEIP_INF_Handler $listener) | |
| disconnect ($name, PEIP_INF_Handler $listener) | |
| hasListeners ($name) | |
| getListeners ($name) | |
| connectCall ($eventName, $callable) | |
| disconnectCall ($eventName, $callable) | |
| command (PEIP_INF_Message $cmdMessage) | |
| setEventDispatcher (PEIP_Object_Event_Dispatcher $dispatcher, $transferListners=true) | |
| getEventDispatcher () | |
Protected Member Functions | |
| doSend (PEIP_INF_Message $message) | |
| replyMessage ($content) | |
| doReply (PEIP_INF_Message $message) | |
| registerCommand ($commandName, $callable) | |
| doFireEvent ($name, array $headers=array(), $eventClass=false) | |
Static Protected Member Functions | |
| static | getSharedEventDispatcher () |
Protected Attributes | |
| $eventDispatcher | |
| $messageDispatcher | |
| $name | |
| $commands = array() | |
Static Protected Attributes | |
| static | $sharedEventDispatcher |
Definition at line 22 of file PEIP_Pipe.php.
| PEIP_Pipe::setName | ( | $ | name | ) |
| PEIP_Pipe::getName | ( | ) |
| PEIP_Pipe::send | ( | PEIP_INF_Message $ | message, | |
| $ | timeout = -1 | |||
| ) |
public
| $message | ||
| $timeout |
Implements PEIP_INF_Channel.
Definition at line 64 of file PEIP_Pipe.php.
References PEIP_ABS_Message_Handler::handle().
| PEIP_Pipe::doSend | ( | PEIP_INF_Message $ | message | ) | [protected] |
protected
| $message |
Definition at line 74 of file PEIP_Pipe.php.
References doFireEvent(), and getMessageDispatcher().
Referenced by replyMessage().
| PEIP_Pipe::replyMessage | ( | $ | content | ) | [protected] |
protected
| $content |
Reimplemented from PEIP_ABS_Reply_Producing_Message_Handler.
Reimplemented in PEIP_Command_Pipe.
Definition at line 87 of file PEIP_Pipe.php.
References doSend(), PEIP_ABS_Reply_Producing_Message_Handler::ensureMessage(), and PEIP_ABS_Reply_Producing_Message_Handler::getOutputChannel().
Referenced by PEIP_Wiretap::doReply(), doReply(), PEIP_Event_Pipe::doReply(), PEIP_ABS_Service_Activator::doReply(), PEIP_ABS_Router::doReply(), and PEIP_ABS_Message_Splitter::doReply().
| PEIP_Pipe::doReply | ( | PEIP_INF_Message $ | message | ) | [protected] |
protected
| $message |
Reimplemented from PEIP_ABS_Reply_Producing_Message_Handler.
Reimplemented in PEIP_ABS_Router, PEIP_ABS_Service_Activator, PEIP_ABS_Message_Splitter, PEIP_Wiretap, and PEIP_Event_Pipe.
Definition at line 102 of file PEIP_Pipe.php.
References replyMessage().
| PEIP_Pipe::subscribe | ( | PEIP_INF_Handler $ | handler | ) |
public
| $handler |
Implements PEIP_INF_Subscribable_Channel.
Definition at line 112 of file PEIP_Pipe.php.
References doFireEvent(), and getMessageDispatcher().
| PEIP_Pipe::unsubscribe | ( | PEIP_INF_Handler $ | handler | ) |
public
| $handler |
Implements PEIP_INF_Subscribable_Channel.
Definition at line 123 of file PEIP_Pipe.php.
References doFireEvent(), and getMessageDispatcher().
| PEIP_Pipe::setMessageDispatcher | ( | PEIP_INF_Dispatcher $ | dispatcher, | |
| $ | transferListeners = true | |||
| ) |
public
| $dispatcher | ||
| $transferListeners |
Definition at line 135 of file PEIP_Pipe.php.
References connect(), and doFireEvent().
| PEIP_Pipe::getMessageDispatcher | ( | ) |
public
Definition at line 151 of file PEIP_Pipe.php.
Referenced by doSend(), subscribe(), and unsubscribe().
| PEIP_Pipe::connect | ( | $ | name, | |
| PEIP_INF_Handler $ | listener | |||
| ) |
public
| $name | ||
| $listener |
Implements PEIP_INF_Connectable.
Definition at line 162 of file PEIP_Pipe.php.
References $name, doFireEvent(), and getEventDispatcher().
Referenced by connectCall(), setEventDispatcher(), and setMessageDispatcher().
| PEIP_Pipe::disconnect | ( | $ | name, | |
| PEIP_INF_Handler $ | listener | |||
| ) |
public
| $name | ||
| $listener |
Implements PEIP_INF_Connectable.
Definition at line 174 of file PEIP_Pipe.php.
References $name, doFireEvent(), and getEventDispatcher().
Referenced by disconnectCall().
| PEIP_Pipe::hasListeners | ( | $ | name | ) |
public
| $name |
Implements PEIP_INF_Connectable.
Definition at line 185 of file PEIP_Pipe.php.
References $name, and getEventDispatcher().
| PEIP_Pipe::getListeners | ( | $ | name | ) |
public
| $name |
Implements PEIP_INF_Connectable.
Definition at line 195 of file PEIP_Pipe.php.
References $name, and getEventDispatcher().
Referenced by disconnectCall().
| PEIP_Pipe::connectCall | ( | $ | eventName, | |
| $ | callable | |||
| ) |
public
| $eventName | ||
| $callable |
Definition at line 213 of file PEIP_Pipe.php.
References connect().
| PEIP_Pipe::disconnectCall | ( | $ | eventName, | |
| $ | callable | |||
| ) |
public
| $eventName | ||
| $callable |
Definition at line 231 of file PEIP_Pipe.php.
References disconnect(), getEventDispatcher(), and getListeners().
| PEIP_Pipe::registerCommand | ( | $ | commandName, | |
| $ | callable | |||
| ) | [protected] |
| PEIP_Pipe::command | ( | PEIP_INF_Message $ | cmdMessage | ) |
public
| $cmdMessage |
Definition at line 256 of file PEIP_Pipe.php.
References doFireEvent().
| PEIP_Pipe::setEventDispatcher | ( | PEIP_Object_Event_Dispatcher $ | dispatcher, | |
| $ | transferListners = true | |||
| ) |
public
| $dispatcher | ||
| $transferListners |
Definition at line 272 of file PEIP_Pipe.php.
References $name, connect(), and doFireEvent().
| PEIP_Pipe::getEventDispatcher | ( | ) |
public
Definition at line 291 of file PEIP_Pipe.php.
Referenced by connect(), disconnect(), disconnectCall(), doFireEvent(), getListeners(), and hasListeners().
| static PEIP_Pipe::getSharedEventDispatcher | ( | ) | [static, protected] |
Definition at line 295 of file PEIP_Pipe.php.
| PEIP_Pipe::doFireEvent | ( | $ | name, | |
| array $ | headers = array(), |
|||
| $ | eventClass = false | |||
| ) | [protected] |
protected
| $name | ||
| $headers | ||
| $eventClass |
Definition at line 307 of file PEIP_Pipe.php.
References $name, and getEventDispatcher().
Referenced by command(), connect(), disconnect(), doSend(), setEventDispatcher(), setMessageDispatcher(), subscribe(), and unsubscribe().
PEIP_Pipe::$eventDispatcher [protected] |
Definition at line 30 of file PEIP_Pipe.php.
PEIP_Pipe::$messageDispatcher [protected] |
Definition at line 30 of file PEIP_Pipe.php.
PEIP_Pipe::$name [protected] |
Definition at line 30 of file PEIP_Pipe.php.
Referenced by connect(), disconnect(), doFireEvent(), getListeners(), hasListeners(), setEventDispatcher(), and setName().
PEIP_Pipe::$commands = array() [protected] |
Definition at line 33 of file PEIP_Pipe.php.
PEIP_Pipe::$sharedEventDispatcher [static, protected] |
Definition at line 36 of file PEIP_Pipe.php.
1.5.1