Class jDao

Description

Factory to create DAO objects

Located in /dao/jDao.class.php (line 24)


	
			
Method Summary
static jDaoFactoryBase create ( $DaoId, [string $profil = ''], string|jSelectorDao $Daoid)
static jDaoConditions createConditions ([string $glueOp = 'AND'])
static jDaoRecordBase createRecord ( $DaoId, [string $profil = ''], string $Daoid)
static jDaoFactoryBase get ( $DaoId, [string $profil = ''], string|jSelectorDao $Daoid)
Methods
static create (line 34)

creates a new instance of a DAO.

If no dao is founded, try to compile a DAO from the dao xml file

  • return: the dao object
  • access: public
static jDaoFactoryBase create ( $DaoId, [string $profil = ''], string|jSelectorDao $Daoid)
  • string|jSelectorDao $Daoid: the dao selector
  • string $profil: the db profil name to use for the connection. If empty, use the default profil
  • $DaoId
static createConditions (line 93)

return an instance of a jDaoConditions object, to use with a findby method of a jDaoFactoryBase object.

  • see: jDaoFactoryBase::findby
  • access: public
static jDaoConditions createConditions ([string $glueOp = 'AND'])
  • string $glueOp: value should be AND or OR
static createRecord (line 75)

creates a record object for the given dao

  • return: a dao record object
  • access: public
static jDaoRecordBase createRecord ( $DaoId, [string $profil = ''], string $Daoid)
  • string $Daoid: the dao selector
  • string $profil: the db profil name to use for the connection. If empty, use the default profil
  • $DaoId
static get (line 56)

return a DAO instance. It Handles a singleton of the DAO.

If no dao is founded, try to compile a DAO from the dao xml file

  • return: the dao object
  • access: public
static jDaoFactoryBase get ( $DaoId, [string $profil = ''], string|jSelectorDao $Daoid)
  • string|jSelectorDao $Daoid: the dao selector
  • string $profil: the db profil name to use for the connection. If empty, use the default profil
  • $DaoId

Documentation generated on Wed, 07 Sep 2011 13:46:52 +0200 by phpDocumentor 1.4.3