abstract class Dao extends AbstractDao implements DaoInterface (View source)

Traits

Constants

CACHEKEY

Properties

Listing $model
Connection $db from AbstractDao
protected Callback $onCreateQueryCallback

Methods

$this
setModel(AbstractModel $model)

No description

from DaoTrait
assignVariablesToModel(array $data)

No description

from DaoTrait
configure()

No description

beginTransaction()

No description

commit()

No description

rollBack()

No description

array|mixed
getValidTableColumns(string $table, bool $cache = true)

No description

resetValidTableColumnsCache($table)

Clears the column information for the given table.

string
getOrder()

No description

string
getGroupBy()

No description

string
getOffsetLimit()

No description

string
getCondition()

No description

$this
addOrder(QueryBuilder $select)

No description

$this
addGroupBy(QueryBuilder $select)

No description

$this
addLimit(QueryBuilder $select)

No description

$this
addConditions(QueryBuilder $select)

No description

int
getTotalCount()

No description

int
getCount()

No description

array|mixed
getAllTranslations()

No description

array
loadRaw()

No description

array
load()

No description

bool
isCacheable()

No description

cleanup()

No description

onCreateQuery(callable $callback)

No description

Details

$this setModel(AbstractModel $model)

Parameters

AbstractModel $model

Return Value

$this

protected assignVariablesToModel(array $data)

Parameters

array $data

configure()

beginTransaction()

commit()

rollBack()

array|mixed getValidTableColumns(string $table, bool $cache = true)

Parameters

string $table
bool $cache

Return Value

array|mixed

resetValidTableColumnsCache($table)

Clears the column information for the given table.

Parameters

$table

protected string getOrder()

Return Value

string

protected string getGroupBy()

Return Value

string

protected string getOffsetLimit()

Return Value

string

protected string getCondition()

Return Value

string

protected $this addOrder(QueryBuilder $select)

Parameters

QueryBuilder $select

Return Value

$this

protected $this addGroupBy(QueryBuilder $select)

Parameters

QueryBuilder $select

Return Value

$this

protected $this addLimit(QueryBuilder $select)

Parameters

QueryBuilder $select

Return Value

$this

protected $this addConditions(QueryBuilder $select)

Parameters

QueryBuilder $select

Return Value

$this

int getTotalCount()

Return Value

int

int getCount()

Return Value

int

array|mixed getAllTranslations()

Return Value

array|mixed

array loadRaw()

Return Value

array

array load()

Return Value

array

bool isCacheable()

Return Value

bool

cleanup()

onCreateQuery(callable $callback)

Parameters

callable $callback