jDao

Factory to create DAO objects

package

jelix

subpackage

dao

Methods

creates a new instance of a DAO.

create( $DaoId, string $profile = '') : \jDaoFactoryBase
static

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

Arguments

$DaoId

$profile

string

the db profile name to use for the connection. If empty, use the default profile

Response

\jDaoFactoryBase

the dao object

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

createConditions(string $glueOp = 'AND') : \jDaoConditions
static
see \jDaoFactoryBase::findby

Arguments

$glueOp

string

value should be AND or OR

Response

\jDaoConditions

creates a record object for the given dao

createRecord( $DaoId, string $profile = '') : \jDaoRecordBase
static

Arguments

$DaoId

$profile

string

the db profile name to use for the connection. If empty, use the default profile

Response

\jDaoRecordBase

a dao record object

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

get( $DaoId, string $profile = '') : \jDaoFactoryBase
static

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

Arguments

$DaoId

$profile

string

the db profile name to use for the connection. If empty, use the default profile

Response

\jDaoFactoryBase

the dao object

Properties

_daoSingleton

_daoSingleton : 
static

Type(s)