base class for all factory classes generated by the dao compiler
Located in /dao/jDaoFactoryBase.class.php (line 32)
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
return the record corresponding to the given key
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 'unifiedType'=> '' // the corresponding unified type 'table' => 'grp', // alias of the table the property is attached to 'updatePattern' => '%s', 'insertPattern' => '%s', 'selectPattern' => '%s', 'sequenceName' => '', // name of the sequence when field is autoincrement 'maxlength' => NULL, // or a number 'minlength' => NULL, // or a number 'ofPrimaryTable' => true/false 'autoIncrement'=> true/false )
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
a callback function for some array_map call in generated methods
a callback function for some array_map call in generated methods
a callback function for some array_map call in generated methods
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 Mon, 26 Oct 2015 21:52:34 +0100 by phpDocumentor 1.4.3