Grammar
class Grammar (View source)
Methods
array
wrapArray(
array $values)
Wrap an array of values.
string
string
string
columnize(
array $columns)
Convert an array of column names into a delimited string.
string
parameterize(
array $values)
Create query parameter place-holders for an array.
string
parameter(
mixed $value)
Get the appropriate query parameter place-holder for a value.
string
bool
isExpression(
mixed $value)
Determine if the given value is a raw expression.
string
getDateFormat()
Get the format for database stored dates.
string
getTablePrefix()
Get the grammar's table prefix.
$this
setTablePrefix(
string $prefix)
Set the grammar's table prefix.
Details
at line line 49
string
wrap(
Expression|string $value,
bool $prefixAlias = false)
Wrap a value in keyword identifiers.
at line line 107
string
columnize(
array $columns)
Convert an array of column names into a delimited string.
at line line 118
string
parameterize(
array $values)
Create query parameter place-holders for an array.
at line line 129
string
parameter(
mixed $value)
Get the appropriate query parameter place-holder for a value.