Interface DAO

Description

The DAO interface defines methods used with common data access objects

This interface defines the most simplyfied version of a data access object providing a CRUD interface.

The DAO pattern provides independence from the persistent data storage engine and from the query-language used to operate on it. A Resource interacts with a data storage only through DAO objects, which can be easily substituted to fit different environments.

  • see: Model

Located in /dao.php (line 23)


	
			
Method Summary
mixed insert ([mixed $data = false])
mixed read (mixed $id)
mixed remove (mixed $id)
mixed update ([mixed $data = false])
Methods
insert (line 39)

Insert data into a persistant data storage

  • access: public
mixed insert ([mixed $data = false])
  • mixed $data: data to insert
read (line 31)

Retrieve resource data from a persistant data storage

  • access: public
mixed read (mixed $id)
  • mixed $id: resource id to retrieve data
remove (line 55)

Delete data from a persistant data storage

  • access: public
mixed remove (mixed $id)
  • mixed $id: resuorce id to delete
update (line 47)

Update data in a persistant data storage

  • access: public
mixed update ([mixed $data = false])
  • mixed $data: data to update

Documentation generated on Tue, 12 May 2009 23:09:36 +0200 by phpDocumentor 1.4.1