com\setasign\SetaFramework\Database

QuoteInterface Interface QuoteInterface

File: /SetaFramework/src/Database/QuoteInterface.php

Identifies that the object can quote the information.

Implemented in

Summary

Methods

quote()

abstract public QuoteInterface::quote (
mixed $value,
int $parameterType = \PDO::PARAM_STR
): string

Quotes a string for use in a query.

This method supports Database\Expressions and null-values which will get not quoted.

Furthermore, it supports quoting of arrays. The result will be a comma separated string of the quoted elements.

"%" and "_" will not be quoted, if you don't want to use these as wildcards you will need to quote it by yourself or use quoteWildCards instead.

Parameters
$value : mixed
 
$parameterType : int
 

quoteIdentifier()

abstract public QuoteInterface::quoteIdentifier (
mixed $identifier
): string

This method quotes an identifier

Parameters
$identifier : mixed
 

quoteWildCards()

abstract public QuoteInterface::quoteWildCards (
mixed $value
): string

Quote the string including wildCard symbols

Parameters
$value : mixed