]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make confirmhandler a subclass of queuehandler
authorEvan Prodromou <evan@prodromou.name>
Thu, 4 Sep 2008 19:31:18 +0000 (15:31 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 4 Sep 2008 19:31:18 +0000 (15:31 -0400)
darcs-hash:20080904193118-84dde-a33d0db712c51177c3f5a5f36483e873aca81532.gz

scripts/xmppconfirmhandler.php

index 3c31c5d8b0e5c7f2c406a474d456e9ceab6c801a..a97b61a7fe43e4ab56e4c8eaf27961ff3d87ec8a 100755 (executable)
@@ -35,16 +35,10 @@ set_error_handler('common_error_handler');
 
 define('CLAIM_TIMEOUT', 1200);
 
-class XmppConfirmHandler {
+class XmppConfirmHandler extends QueueHandler {
 
        var $_id = 'confirm';
        
-       function XmppConfirmHandler($id=NULL) {
-               if ($id) {
-                       $this->_id = $id;
-               }
-       }
-
        function start() {
                # Low priority; we don't want to receive messages
                $this->log(LOG_INFO, "INITIALIZE");
@@ -141,10 +135,6 @@ class XmppConfirmHandler {
                $confirm->update(DB_DATAOBJECT_WHEREADD_ONLY);
        }
        
-       function log($level, $msg) {
-               common_log($level, 'XmppConfirmHandler ('. $this->_id .'): '.$msg);
-       }
-       
        function idle($timeout=0) {
                $this->conn->processTime($timeout);
        }