Class jDao

Description

Factory to create DAO objects

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


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

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

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

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

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 Mon, 19 Sep 2011 14:12:09 +0200 by phpDocumentor 1.4.3