void DbaddSql(
array
$row, array
$fieldsType, string
$KeyField
)
|
|
From an array of values, made the sql for adding the row
Parameters:
|
array |
$row: |
array of values. The key is the field name |
|
array |
$fieldsType: |
type of each fields |
|
string |
$KeyField: |
name of the key field |
API Tags:
Redefined in descendants as:
Return the error descritpion from last command
API Tags:
string DbEscape(
string
$value
)
|
|
Escape the string using the db functions, if provided It don't apply the escape string if magic_quotes_gpc is enabled
Parameters:
|
string |
$value: |
sql statement |
API Tags:
| Return: | the escaped string |
| Access: | public |
Redefined in descendants as:
-
CYap_MsSQL::DbEscape()
: Escape the string using the db functions, if provided It don't apply the escape string if magic_quotes_gpc is enabled
-
CYap_mysql::DbEscape()
: Escape the string using the db functions, if provided It don't apply the escape string if magic_quotes_gpc is enabled Mysql version. It uses the mysql_escape string function instead of addslashes
-
CYap_odbc::DbEscape()
: Escape the string using the db functions, if provided It don't apply the escape string if magic_quotes_gpc is enabled
bool DbExecSql(
string
$sql
)
|
|
Execute the given query
Parameters:
|
string |
$sql: |
sql statement |
API Tags:
| Return: | true on success, false on failure |
| Access: | public |
Redefined in descendants as:
Get column information from a result and return as an object
Parameters:
|
integer |
$result: |
|
|
integer |
$FieldNo: |
|
API Tags:
Redefined in descendants as:
string DbFieldFlags(
resource
$result, integer
$FieldNo
)
|
|
Get the flags associated with the specified field in a result
Parameters:
|
resource |
$result: |
|
|
integer |
$FieldNo: |
|
API Tags:
Redefined in descendants as:
bool DbFreeResult(
integer
$result
)
|
|
Free the given result
Parameters:
API Tags:
| Return: | true on success, false on failure |
| Access: | public |
Redefined in descendants as:
integer DbGetNumFields(
integer
$result
)
|
|
Retrieve the number of fields retrieved by the given result
Parameters:
API Tags:
Redefined in descendants as:
integer DbGetNumRow(
integer
$result
)
|
|
Retrieve the number of rows retrieved by the given result
Parameters:
API Tags:
Redefined in descendants as:
void DbmodifySql(
array
$row, array
$fieldsType
)
|
|
From an array of values, made the sql for modify the row
Parameters:
|
array |
$row: |
array of values. The key is the field name |
|
array |
$fieldsType: |
type of each fields |
API Tags:
Redefined in descendants as:
string DbRegexCond(
string
$FieldName, string
$pattern
)
|
|
Build the condition string for the $FieldName using the pattern matching
syntax
Parameters:
|
string |
$FieldName: |
|
|
string |
$pattern: |
|
API Tags:
Redefined in descendants as:
bool OpenDB(
mixed
$Server, [string
$User = ""], [string
$Password = ""], string
$server
)
|
|
Open the database connection
Parameters:
|
string |
$server: |
database server |
|
string |
$User: |
username |
|
string |
$Password: |
User password |
API Tags:
| Return: | true on success, false on failure |
| Access: | public |
bool QueryLimit(
string
$select, [integer
$start = 0], [integer
$many = -1]
)
|
|
Perform a select statement using range to limits the
rows to return
Parameters:
|
string |
$select: |
select statement |
|
integer |
$start: |
no. rows to start |
|
integer |
$many: |
how many rows sholud be returned |
API Tags:
| Return: | true on success, false on failure |
| Access: | public |
Redefined in descendants as:
void SelectDb(
mixed
$DBname
)
|
|
Redefined in descendants as: