Jelix 1.8.14-pre

jDao
in package

Factory to create DAO objects.

Tags
subpackage

dao

Table of Contents

$_daoSingleton  : mixed
create()  : jDaoFactoryBase
creates a new instance of a DAO.
createConditions()  : jDaoConditions
return an instance of a jDaoConditions object, to use with a findby method of a jDaoFactoryBase object.
createRecord()  : jDaoRecordBase
creates a record object for the given dao.
get()  : jDaoFactoryBase
return a DAO instance. It Handles a singleton of the DAO.

Properties

$_daoSingleton

protected static mixed $_daoSingleton = array()
Tags

Methods

create()

creates a new instance of a DAO.

public static create(mixed $DaoId[, string $profile = '' ]) : jDaoFactoryBase

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

Parameters
$DaoId : mixed
$profile : string = ''

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

Tags
Return values
jDaoFactoryBase

the dao object

createConditions()

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

public static createConditions([string $glueOp = 'AND' ]) : jDaoConditions
Parameters
$glueOp : string = 'AND'

value should be AND or OR

Tags
see
jDaoFactoryBase::findby
Return values
jDaoConditions

createRecord()

creates a record object for the given dao.

public static createRecord(mixed $DaoId[, string $profile = '' ]) : jDaoRecordBase

See also jDaoFactoryBase::createRecord()

Parameters
$DaoId : mixed
$profile : string = ''

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

Tags
Return values
jDaoRecordBase

a dao record object

get()

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

public static get(mixed $DaoId[, string $profile = '' ]) : jDaoFactoryBase

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

Parameters
$DaoId : mixed
$profile : string = ''

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

Tags
Return values
jDaoFactoryBase

the dao object

Search results