public function setConfig($config)Inherited
| $config |
| wild |
public function getConfig($key, $default)Inherited
| $key | ||
| $default |
| wild |
public function connect()Inherited
Performs any connection logic necessary for the protocol
| wild |
public function disconnect()Inherited
Disconnect from the service.
| wild |
public function getNextMessages($poll_frequency)Inherited
This is the spout for messages coming in from the protocol. This will be called in the main event loop of the bot daemon So if if doesn't implement some sort of blocking timeout (e.g. select-based socket polling), it should at least sleep for some period of time in order to not overwhelm the processor.
| Int | $poll_frequency | The number of seconds between polls |
| wild |
public function writeMessage($message)
This is the output mechanism for the protocol.
| PhabricatorBotMessage | $message | The message to write |
| wild |
public function getServiceType()
String identifying the service type the adapter provides access to, like "irc", "campfire", "flowdock", "hipchat", etc.
| wild |
public function getServiceName()Inherited
String identifying the service name the adapter is connecting to. This is used to distinguish between instances of a service. For example, for IRC, this should return the IRC network the client is connecting to.
| wild |
protected function joinRoom($room_id)
| $room_id |
| wild |
private function read($ch, $data)Inherited
| $ch | ||
| $data |
| wild |
private function blockingMultiExec()Inherited
| wild |
private function processReadBuffer()Inherited
| wild |
protected function performPost($endpoint, $data)Inherited
| $endpoint | ||
| $data |
| wild |
protected function getAuthorizationHeader()Inherited
| wild |
protected function getEncodedAuthToken()Inherited
| wild |
protected function buildStreamingUrl($channel)
| $channel |
| wild |
protected function processMessage($m_obj)
| array | $raw_object |
| wild |
private function leaveRoom($room_id)
| $room_id |
| wild |
private function speak($message, $channel, $type)
| $message | ||
| PhabricatorBotTarget | $channel | |
| $type |
| wild |
public function __destruct()
| wild |