* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://laconi.ca/
*/
-
class OrbitedPlugin extends RealtimePlugin
{
public $webserver = null;
$this->log(LOG_INFO, "Connected.");
} else {
$this->log(LOG_ERR, 'Failed to connect to queue server');
- throw new ServerException('Failed to connect to queue server');
+ // TRANS: Server exception thrown when no connection can be made to a queue server.
+ throw new ServerException(_m('Failed to connect to queue server.'));
}
}
json_encode($message));
return $result;
- // TODO: parse and deal with result
+ // @todo Parse and deal with result.
}
function _disconnect()
$port = $this->_getStompPort();
return "tcp://$server:$port/";
}
+
+ /**
+ * Add our version information to output
+ *
+ * @param array &$versions Array of version-data arrays
+ *
+ * @return boolean hook value
+ */
+ function onPluginVersion(&$versions)
+ {
+ $versions[] = array('name' => 'Orbited',
+ 'version' => STATUSNET_VERSION,
+ 'author' => 'Evan Prodromou',
+ 'homepage' => 'http://status.net/wiki/Plugin:Orbited',
+ 'rawdescription' =>
+ // TRANS: Plugin description.
+ _m('Plugin to make updates using Orbited and STOMP.'));
+ return true;
+ }
}