Example #1
0
        return $this->sqlError('E0049');
    }
    /**
     * Mark a payout as processed
     * @param id int Payout ID
     * @return boolean bool True or False
     **/
    public function setProcessed($id)
    {
        $stmt = $this->mysqli->prepare("UPDATE {$this->table} SET completed = 1 WHERE id = ? LIMIT 1");
        if ($stmt && $stmt->bind_param('i', $id) && $stmt->execute()) {
            return true;
        }
        return $this->sqlError('E0051');
    }
    public function setProcessed_mm($id)
    {
        $stmt = $this->mysqli->prepare("UPDATE {$this->table_mm} SET completed = 1 WHERE id = ? LIMIT 1");
        if ($stmt && $stmt->bind_param('i', $id) && $stmt->execute()) {
            return true;
        }
        return $this->sqlError('E0051');
    }
}
$oPayout = new Payout();
$oPayout->setDebug($debug);
$oPayout->setLog($log);
$oPayout->setMysql($mysqli);
$oPayout->setConfig($config);
$oPayout->setToken($oToken);
$oPayout->setErrorCodes($aErrorCodes);