From 155cf6aeea9ba7ecbc39face6442d3ce1b03ad8e Mon Sep 17 00:00:00 2001 From: Nils Schwabe Date: Wed, 4 Jun 2014 14:27:03 +0200 Subject: Add webinterface with functionallity --- management-interface/lib/api/classDB_1_1SQL.html | 547 +++++++++++++++++++++++ 1 file changed, 547 insertions(+) create mode 100644 management-interface/lib/api/classDB_1_1SQL.html (limited to 'management-interface/lib/api/classDB_1_1SQL.html') diff --git a/management-interface/lib/api/classDB_1_1SQL.html b/management-interface/lib/api/classDB_1_1SQL.html new file mode 100644 index 0000000..f993b6a --- /dev/null +++ b/management-interface/lib/api/classDB_1_1SQL.html @@ -0,0 +1,547 @@ + + + + + + + +Fat-Free Framework: DB\SQL Class Reference + + + + + + +
+
+ + + + + + +
+
Fat-Free Framework +  3.2.2 +  Overview Class List Hierarchy +
+
+
+ + + +
+
+
+Public Member Functions | +Public Attributes | +Protected Attributes | +List of all members
+
+
DB\SQL Class Reference
+
+
+ +

PDO wrapper. + More...

+
+ + Inheritance diagram for DB\SQL:
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 begin ()
 
 rollback ()
 
 commit ()
 
 type ($val)
 
 value ($type, $val)
 
 exec ($cmds, $args=NULL, $ttl=0, $log=TRUE)
 
 count ()
 
 log ()
 
 schema ($table, $fields=NULL, $ttl=0)
 
 quote ($val, $type=\PDO::PARAM_STR)
 
 uuid ()
 
 driver ()
 
 version ()
 
 name ()
 
 quotekey ($key)
 
 __construct ($dsn, $user=NULL, $pw=NULL, array $options=NULL)
 
+ + + + + + + + + + + + + + + + + + + +

+Public Attributes

$dsn
 Data source name.
 
$engine
 Database engine.
 
$dbname
 Database name.
 
$trans =FALSE
 Transaction flag.
 
$rows =0
 Number of rows affected by query.
 
$log
 SQL log.
 
+ + + + +

+Protected Attributes

$uuid
 UUID.
 
+

Detailed Description

+

PDO wrapper.

+

Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DB\SQL::__construct ( $dsn,
 $user = NULL,
 $pw = NULL,
array $options = NULL 
)
+
+

Instantiate class

+
Parameters
+ + + + + +
$dsnstring
$userstring
$pwstring
$optionsarray
+
+
+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + +
DB\SQL::begin ()
+
+

Begin SQL transaction

+
Returns
bool
+ +
+
+ +
+
+ + + + + + + +
DB\SQL::commit ()
+
+

Commit SQL transaction

+
Returns
bool
+ +
+
+ +
+
+ + + + + + + +
DB\SQL::count ()
+
+

Return number of rows affected by last query

+
Returns
int
+ +
+
+ +
+
+ + + + + + + +
DB\SQL::driver ()
+
+

Return database engine

+
Returns
string
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DB\SQL::exec ( $cmds,
 $args = NULL,
 $ttl = 0,
 $log = TRUE 
)
+
+

Execute SQL statement(s)

+
Returns
array|int|FALSE
+
Parameters
+ + + + + +
$cmdsstring|array
$argsstring|array
$ttlint
$logbool
+
+
+ +
+
+ +
+
+ + + + + + + +
DB\SQL::log ()
+
+

Return SQL profiler results

+
Returns
string
+ +
+
+ +
+
+ + + + + + + +
DB\SQL::name ()
+
+

Return database name

+
Returns
string
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
DB\SQL::quote ( $val,
 $type = \PDO::PARAM_STR 
)
+
+

Quote string

+
Returns
string
+
Parameters
+ + + +
$valmixed
$typeint
+
+
+ +
+
+ +
+
+ + + + + + + + +
DB\SQL::quotekey ( $key)
+
+

Return quoted identifier name

+
Returns
string
+
Parameters
+ + +
$key
+
+
+ +
+
+ +
+
+ + + + + + + +
DB\SQL::rollback ()
+
+

Rollback SQL transaction

+
Returns
bool
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
DB\SQL::schema ( $table,
 $fields = NULL,
 $ttl = 0 
)
+
+

Retrieve schema of SQL table

+
Returns
array|FALSE
+
Parameters
+ + + + +
$tablestring
$fieldsarray|string
$ttlint
+
+
+ +
+
+ +
+
+ + + + + + + + +
DB\SQL::type ( $val)
+
+

Map data type of argument to a PDO constant

+
Returns
int
+
Parameters
+ + +
$valscalar
+
+
+ +
+
+ +
+
+ + + + + + + +
DB\SQL::uuid ()
+
+

Return UUID

+
Returns
string
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
DB\SQL::value ( $type,
 $val 
)
+
+

Cast value to PHP type

+
Returns
scalar
+
Parameters
+ + + +
$typestring
$valscalar
+
+
+ +
+
+ +
+
+ + + + + + + +
DB\SQL::version ()
+
+

Return server version

+
Returns
string
+ +
+
+
The documentation for this class was generated from the following file: +
-- cgit v1.2.3-55-g7522