final class QuotedIdentifierEscaper implements IdentifierEscaperInterface (View source)

Escapes identifier parts with a supplied pair of SQL quote characters.

Methods

__construct(string $prefix, string $quote)

Initializes this QuotedIdentifierEscaper with the collaborators and state required by its database contract.

string
identifier(string $identifier)

Provides this part of the database contract while preserving the object's current state and driver semantics.

string
string
table(string $table)

Provides this part of the database contract while preserving the object's current state and driver semantics.

string

Details

__construct

__construct(string $prefix, string $quote)

Initializes this QuotedIdentifierEscaper with the collaborators and state required by its database contract.

Parameters

string $prefix
string $quote

identifier

string identifier(string $identifier)

Provides this part of the database contract while preserving the object's current state and driver semantics.

Parameters

string $identifier

Return Value

string

table

string table(string $table)

Provides this part of the database contract while preserving the object's current state and driver semantics.

Parameters

string $table

Return Value

string