Formatting output Plese Wait...

zDbAccess Class Reference
[Custom Database Access without Magic Methods]

Inheritance diagram for zDbAccess:

Inheritance graph
[legend]
Collaboration diagram for zDbAccess:

Collaboration graph
[legend]

Public Member Functions

 zDbAccess ($connAlias, $tableName)
 __construct ($connAlias, $tableName)
 Constructs Table level Objects.

Private Member Functions

 colList ($conAlias, $driver)
 Bind's Proper driver, and connects through it.

Detailed Description

dbAccess Class builds a table Object dynamically. without using static ORM Maps. it uses teh real column names as the column alias name. and as there is no orm map assiciated wit it it doesn't uses any validation filters. you need to load dbAccess module to use it.
You cant use any magic method that comes from zOrm_magic like findCol() or findColByOp() etc.. However yo can use all non-magic methods that comes from zOrm_nomagic and its parents.
you need to pass a table name with which you want to connect and pass the connection name e.g. Connection file name by using that it will connect.
you can even create dynamic Connection files on the fly. take a look at the zCDE Class/Module. If you need magic-method support use zDynOrm Class Instead.
Show Source
  $this->load->module('dbAccess');
  //code this in your Controller to load the module
  //You can also code load_module('dbAccess');
  $stdObj = new zDbAccess('conAliasName', 'student');
  //$stdObj = new zDbAccess('conAliasName', 'tableName');
  $stdObj->find('std_name');//$stdObj->find('col_name');

Definition at line 65 of file dbaccess.php.


Constructor & Destructor Documentation

zDbAccess::__construct( string $connAlias, string $tableName )


Member Function Documentation

zDbAccess::zDbAccess( string $connAlias, string $tableName )

zDbAccess::colList( string $conAlias, string $driver ) [private]


The documentation for this class was generated from the following file:

Generated on Mon Oct 27 23:53:47 2008 for zigmoyd.kdevelop by doxygen 1.5.6
CompoundsX
Build Compounds List