private $commands = array();
private $storage = array();
private $feeds = array();
+ private $api_methods = array();
private $owner_uid;
private $debug;
return PLUGIN_FEED_BASE_INDEX - 1 + abs($feed);
}
+ function add_api_method($name, $sender) {
+ if ($this->is_system($sender)) {
+ $this->api_methods[strtolower($name)] = $sender;
+ }
+ }
+
+ function get_api_method($name) {
+ return $this->api_methods[$name];
+ }
}
?>