Class: atkOci9Query
Source Location: /db/class.atkoci9query.inc
Class atkOci9Query
Method Summary
| String |
buildCount() |
Builds the SQL Select COUNT(*) query. This is different from select, because we do joins, like in a select, but we don't really select the fields. |
| String |
convertQuery() |
Converts the SQL Select query. All aliases which |
| string |
replaceAliases() |
Search patterns which are aliases and replace patterns |
Methods
atkQuery &addField(
string
$name, [string
$value = ""], [string
$table = ""], [string
$fieldaliasprefix = ""], [string
$quote = true], [string
$mode = ""], [string
$fieldType = ""]
)
|
|
Add's a field to the query
Parameters:
|
string |
$name: |
Field name |
|
string |
$value: |
Field value |
|
string |
$table: |
Table name |
|
string |
$fieldaliasprefix: |
Field alias prefix |
|
string |
$quote: |
If this parameter is true, stuff is inserted into the db using quotes, e.g. SET name = 'piet'. If it is false, it's done without quotes, e.d. SET number = 4. |
|
string |
$mode: |
|
|
string |
$fieldType: |
|
API Tags:
| Return: | The query object, for fluent usage. |
Redefinition of:
- atkQuery::addField()
- Add's a field to the query
atkQuery &addJoin(
string
$table, string
$alias, string
$condition, bool
$outer
)
|
|
Makes a Join SQL query for Oracle
Parameters:
|
string |
$table: |
Table name |
|
string |
$alias: |
Alias for the table |
|
string |
$condition: |
Condition for the join |
|
bool |
$outer: |
Wether to use an outer (left) join or an inner join |
API Tags:
| Return: | The query object (for fluent usage) |
Redefinition of:
- atkOci8Query::addJoin()
- Makes a Join SQL query for Oracle
String buildCount(
[bool
$distinct = FALSE]
)
|
|
Builds the SQL Select COUNT(*) query. This is different from select, because we do joins, like in a select, but we don't really select the fields.
Parameters:
|
bool |
$distinct: |
distinct rows? |
API Tags:
| Return: | a SQL Select COUNT(*) Query |
Redefinition of:
- atkQuery::buildCount()
- Builds the SQL Select COUNT(*) query. This is different from select, because we do joins, like in a select, but we don't really select the fields.
String buildSelect(
[bool
$distinct = FALSE]
)
|
|
Builds the SQL Select query
Parameters:
|
bool |
$distinct: |
distinct records? |
API Tags:
Redefinition of:
- atkQuery::buildSelect()
- Builds the SQL Select query
String convertQuery(
string
$query
)
|
|
Converts the SQL Select query. All aliases which
have been added with addJoin are replaced with generated aliases bug #137
Parameters:
|
string |
$query: |
query string |
API Tags:
string replaceAliases(
string
$str
)
|
|
Search patterns which are aliases and replace patterns
Parameters: