DNS::processDelqueue PHP Method

processDelqueue() public method

public processDelqueue ( )
    function processDelqueue()
    {
        $query = $this->db->Execute("SELECT queueid, domainid FROM del_queue WHERE completed = '0'");
        if ($query->numRows() > 0) {
            while ($row = $query->fetchRow()) {
                $queueid = $this->db->quote($row['queueid']);
                $domainid = $this->db->quote($row['domainid']);
                $domain = $this->db->getOne("SELECT domain FROM domains WHERE domainid = {$domainid}");
                $this->delZone($domain);
                $this->db->Execute("UPDATE del_queue SET completed = '1' WHERE queueid = {$queueid}");
                $this->writeConf();
            }
            $this->reloadZone();
            return true;
        } else {
            $this->raiseError("Nothing to process\n");
            return false;
        }
    }