Example #1
0
 function dog_plugin_alert_func4(array $args)
 {
     global $DOG_PLUG_ALERT_TIMERS;
     $scope = $args[0];
     $scope instanceof Dog_Scope;
     Dog::setScope($scope);
     Dog::reply($args[1]);
     $DOG_PLUG_ALERT_TIMERS[$scope->getUser()->getID()]--;
 }
Example #2
0
 private function sendReply($message)
 {
     $callback = $this->callbacks[$message[self::OUT_ID]];
     Dog::setScope($callback[self::RES_SCOPE]);
     Dog::reply($message[self::OUT_ARGS]);
 }