[DB] element index

Package indexes

All elements
a c d e f g i l m n p q r s t u _
_
top
Variable $_conn
Variable $_conn
PhpFunk_DB_TableDataGateway::$_conn in TableDataGateway.php
Variable $_pkey
PhpFunk_DB_TableDataGateway::$_pkey in TableDataGateway.php
Variable $_pkey
Column in table that is pkey for DTO
Variable $_table
Name of table DTO maps to
Variable $_table
PhpFunk_DB_TableDataGateway::$_table in TableDataGateway.php
Variable $_vendor
Prefixed in front of pkg_class by get_dto_class()
Method _create_from_array
Method _disableQueryCache
Method _enableQueryCache
Method _find
Generic find using any SQL statement
Method _get_vars
This instance method would really be package-private access
Method _insert
Insert a DTO object
Method _update
Update a DTO object
a
top
Method affectedRows
Method affectedRows
c
top
Method commit
mysql will always return TRUE even if engine is not transaction-safe
Method commit
Returns FALSE if unable to commit
Method connect
Method connect
Returns TRUE on successful connection
d
top
Variable $db
PhpFunk_DB_MySQLDriver::$db in MySQLDriver.php
Variable $dto_class
Class name of DTO this DAO manages. You must include it!
Page DAO.php
DAO.php in DAO.php
Page DBWrapper.php
DBWrapper.php in DBWrapper.php
Page DTO.php
DTO.php in DTO.php
Method delete
Returns number of rows deleted or FALSE on error
Method delete
Method delete_by_pkey
Like delete() but only requires the pkey value
Method disconnect
Method disconnect
e
top
Method escape
Escape an argument so it can be safely inserted into database
Method escape
Method escapeString
Method execute
Perform an sql query (non-select)
Method execute
Method executePrepared
Method executePrepared
Execute a prepared statement.
f
top
Method find
Same as find_by_pkey
Method find
PhpFunk_DB_TableDataGateway::find() in TableDataGateway.php
Method findAll
Method find_all
Find all records matching criteria. If you need group and order by clauses better to use _find() with your own sql.
Method find_by_pkey
Returns a DTO or FALSE on DB error or NULL if not found
Method find_one
Preferred method to find one using a where clause
Method find_where
Like find_all but only finds ONE object (even if more match)
Method from_array
Updates ivars of this DTO with values from assoc array $arr
g
top
Method get_dto_class
Instance method to encapsulate the class to table naming convention
i
top
Method insert
Returns the id of the inserted row or FALSE on error
Method isConnected
Method isConnected
l
top
Method lastError
Method lastError
Returns last error msg or FALSE if there was none
Method lastInsertID
Method lastInsertID
The driver will attempt to return the last insert ID.
m
top
Page MySQLDriver.php
MySQLDriver.php in MySQLDriver.php
Method MySQLDriver
n
top
Method numRecords
p
top
Variable $prepared
Class PhpFunk_DB_DAO
PhpFunk_DB_DAO in DAO.php
The DAO reads and writes DTO to database
Method PhpFunk_DB_DAO
Class PhpFunk_DB_DBWrapper
PhpFunk_DB_DBWrapper in DBWrapper.php
DB abstraction layer
Method PhpFunk_DB_DTO
Create instance passing in assoc array
Class PhpFunk_DB_DTO
PhpFunk_DB_DTO in DTO.php
Data Transfer Object is literally dumb data object
Class PhpFunk_DB_MySQLDriver
PhpFunk_DB_MySQLDriver in MySQLDriver.php
Interface to MySQL databases
Class PhpFunk_DB_TableDataGateway
PhpFunk_DB_TableDataGateway in TableDataGateway.php
Method prepare
Prepare a statement for execution w/ executePrepared()
Method prepare
q
top
Variable $queryCacheSize
r
top
Method rollback
Returns FALSE if unable to rollback!
Method rollback
mysql will always return TRUE even if engine is not transaction-safe
s
top
Method save
Insert or update a DTO object
Method selectColumn
Method selectColumn
Get first column of each row in result set.
Method selectOne
Method selectOne
Fetches a row or a single value from database.
Method selectRows
Method selectRows
Returns rows of assoc array or NULL if no matches are found.
Method startTransaction
mysql will always return TRUE even if engine is not transaction-safe
Method startTransaction
Returns FALSE if unable to start transaction
t
top
Page TableDataGateway.php
TableDataGateway.php in TableDataGateway.php
Method TableDataGateway
Method to_array
Return ivars of this DTO as assoc array
u
top
Variable $useQueryCache
Method update
Updates $row using $pkey as where clause
a c d e f g i l m n p q r s t u _