base class for all factory classes generated by the dao compiler
Located in /dao/jDaoFactoryBase.class.php (line 30)
the database connector
the class name of a dao record for this dao factory
the selector of the dao, to be sent with events
the from clause you can reuse for a specific SELECT query
the id of the primary table
the select clause you can reuse for a specific SELECT query
informations on tables
Keys of elements are the alias of the table. values are arrays like that :
array ( 'name' => ' the table alias', 'realname' => 'the real name of the table', 'pk' => array ( list of primary keys name ), 'fields' => array ( list of property name attached to this table ) )
the where clause you can reuse for a specific SELECT query
return the number of records corresponding to the conditions stored into the jDaoConditions object.
delete a record corresponding to the given key
delete all record corresponding to the conditions stored into the jDaoConditions object.
return all record corresponding to the conditions stored into the jDaoConditions object.
you can limit the number of results by given an offset and a count
finish to initialise a record set. Could be redefined in child class
to do additionnal processes
informations on all properties
keys are property name, and values are an array like that :
array ( 'name' => 'name of property', 'fieldName' => 'name of fieldname', 'regExp' => NULL, // or the regular expression to test the value 'required' => true/false, 'isPK' => true/false, //says if it is a primary key 'isFK' => true/false, //says if it is a foreign key 'datatype' => '', // type of data : string 'table' => 'grp', // alias of the table the property is attached to 'updatePattern' => '%s', 'insertPattern' => '%s', 'selectPattern' => '%s', 'sequenceName' => '', // name of the sequence when type is autoincrement 'maxlength' => NULL, // or a number 'minlength' => NULL, // or a number 'ofPrimaryTable' => true/false, 'needsQuotes' => tree/false, // says if the value need to enclosed between quotes )
save a new record into the database
if the dao record has an autoincrement key, its corresponding property is updated
save a modified record into the database
create a WHERE clause with conditions on primary keys with given value. This method should be used for DELETE and UPDATE queries.
create a WHERE clause with conditions on primary keys with given value. This method should be used for SELECT queries. You haven't to escape values.
prepare the value ready to be used in a dynamic evaluation
Documentation generated on Thu, 22 Mar 2012 22:14:40 +0100 by phpDocumentor 1.4.3