Class jDao

Description

Factory to create DAO objects

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


	
			
Method Summary
static jDaoFactoryBase create ( $DaoId, [string $profile = ''], string|jSelectorDao $Daoid)
static jDaoConditions createConditions ([string $glueOp = 'AND'])
static jDaoRecordBase createRecord ( $DaoId, [string $profile = ''], string $Daoid)
static jDaoFactoryBase get ( $DaoId, [string $profile = ''], 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 $profile = ''], string|jSelectorDao $Daoid)
  • string|jSelectorDao $Daoid: the dao selector
  • string $profile: the db profile name to use for the connection. If empty, use the default profile
  • $DaoId
static createConditions (line 92)

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 74)

creates a record object for the given dao

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

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 $profile = ''], string|jSelectorDao $Daoid)
  • string|jSelectorDao $Daoid: the dao selector
  • string $profile: the db profile name to use for the connection. If empty, use the default profile
  • $DaoId

Documentation generated on Thu, 22 Mar 2012 22:14:34 +0100 by phpDocumentor 1.4.3