Flake\Core\Database::DELETEquery PHP Method

DELETEquery() public method

public DELETEquery ( $table, $where )
    function DELETEquery($table, $where)
    {
        if (is_string($where)) {
            // Table and fieldnames should be "SQL-injection-safe" when supplied to this function
            $query = 'DELETE FROM ' . $table . (strlen($where) > 0 ? '
				WHERE
					' . $where : '');
            if ($this->debugOutput || $this->store_lastBuiltQuery) {
                $this->debug_lastBuiltQuery = $query;
            }
            return $query;
        } else {
            die('<strong>Fatal Error:</strong> "Where" clause argument for DELETE query was not a string in $this->DELETEquery() !');
        }
    }