void convertBooleans(
array
$item
)
|
|
convertBooleans some drivers need the boolean values to be converted into integers when using DQL API
This method takes care of that conversion
Parameters:
API Tags:
string escapePattern(
string
$text
)
|
|
Quotes pattern (% and _) characters in a string)
EXPERIMENTAL
WARNING: this function is experimental and may change signature at any time until labelled as non-experimental
Parameters:
string |
$text: |
the input string to quote |
API Tags:
Return: | quoted string |
Access: | public |
string fixIndexName(
string
$idx
)
|
|
Removes any formatting in an index name using the 'idxname_format' option
Parameters:
string |
$idx: |
string that containts name of anl index |
API Tags:
Return: | name of the index with possible formatting removed |
Access: | public |
string fixSequenceName(
string
$sqn
)
|
|
Removes any formatting in an sequence name using the 'seqname_format' option
Parameters:
string |
$sqn: |
string that containts name of a potential sequence |
API Tags:
Return: | name of the sequence with possible formatting removed |
Access: | public |
string getIndexName(
string
$idx
)
|
|
adds index name formatting to a index name
Parameters:
string |
$idx: |
name of the index |
API Tags:
Return: | formatted index name |
Access: | public |
string getSequenceName(
string
$sqn
)
|
|
adds sequence name formatting to a sequence name
Parameters:
string |
$sqn: |
name of the sequence |
API Tags:
Return: | formatted sequence name |
Access: | public |
mixed quote(
mixed
$input, [string
$type = null]
)
|
|
quote quotes given input parameter
Parameters:
mixed |
$input: |
parameter to be quoted |
string |
$type: |
|
API Tags:
string quoteIdentifier(
string
$str, [bool
$checkOption = true]
)
|
|
Quote a string so it can be safely used as a table or column name
Delimiting style depends on which database driver is being used.
NOTE: just because you CAN use delimited identifiers doesn't mean you SHOULD use them. In general, they end up causing way more problems than they solve.
Portability is broken by using the following characters inside delimited identifiers:
- backtick (`) -- due to MySQL
- double quote (") -- due to Oracle
- brackets ([ or ]) -- due to Access
Delimited identifiers are known to generally work correctly under the following drivers: - mssql
- mysql
- mysqli
- oci8
- pgsql
- sqlite
InterBase doesn't seem to be able to use delimited identifiers via PHP 4. They work fine under PHP 5.
Parameters:
string |
$str: |
identifier name to be quoted |
bool |
$checkOption: |
check the 'quote_identifier' option |
API Tags:
Return: | quoted identifier string |
Access: | public |