Interface

DAO

Package: mvc Author: loic rouchon <loic.rouchon@phpboost.com> Desc: Describes a simple way to interact with a table Located at mvc/model/DAO.class.php

Direct known implementers

SQLDAO
Methods summary
public
# save( PropertiesMapInterface $object )
public
# update( array $fields, string $where = DAO::WHERE_ALL, array $parameters = array() )
public
# delete( PropertiesMapInterface $object )
public
# delete_all( string $where = DAO::WHERE_ALL, array $parameters = array() )
public
# count( string $where = DAO::WHERE_ALL, array $parameters = array() )
public PropertiesMapInterface
# find_by_id( mixed $id )
public QueryResultMapper
# find_all( integer $limit = 100, integer $offset = 0, string[mixed][] $order_by = array() )
public QueryResultMapper
# find_by_criteria( string $criteria, string[string] $parameters = array() )
Constants summary
integer FIND_ALL 0
#
string WHERE_ALL 'WHERE 1'
#