Naf Database Tools: Store and retrieve objects in databases using PDO

Recommend this page to a friend!
  Info   View files (13)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,027 All time: 3,536 This week: 241
Version License PHP version Categories
naf-db 1.0GNU General Publi...5.0PHP 5, Databases, Design Patterns
Description Author

This package implements the Active Record design pattern to store and retrieve objects in SQL databases using PDO.

It provides a base class that map information in object variables to records of database table.

That class provides functions to create, retrieve, update, and delete objects stored in the database.

It can be extended by implementation classes that define the class variables with values to be stored in records of a given database table.

This class provides also another class that can be used to compose and execute queries to retrieve objects that match given conditions.

Picture of Victor Bolshov
  Performance   Level  
Name: Victor Bolshov <contact>
Classes: 10 packages by
Country: Russian Federation Russian Federation
Age: 41
All time rank: 42411 in Russian Federation Russian Federation
Week rank: 713 24 in Russian Federation Russian Federation
Innovation award
Innovation award
Nominee: 2x

File Role Description
Naf (3 files)
unit_tests (1 directory)
docs (4 files)
example (1 file, 1 directory)

  Files  /  Naf  
File Role Description
   Table.php Class Naf_Table class
   Record.php Class Naf_Record class - ActiveRecord implementation
   Select.php Class Naf_Select class - a Query-Object implementation

  Files  /  unit_tests  
File Role Description
Database (4 files)

  Files  /  unit_tests  /  Database  
File Role Description
   TableTest_test.php Test Unit test case for Naf_Table
   RecordTest_test.php Test Unit test case for Naf_Record
   Abstract.php Test Helper class for unit-tests
   Connection.php Test Naf_UnitTestDbConnection class - a helper for unit test cases

  Files  /  docs  
File Role Description
   README.Table.txt Doc. README for Naf_Table
   README.Naf_Record.txt Doc. README
   README.test_suite.txt Doc. README
   README.Naf_Select.txt Doc. README

  Files  /  example  
File Role Description
lib (1 file)
   index.php Example example CRUD appplication

  Files  /  example  /  lib  
File Role Description
   Book.php Class ActiveRecord for the example CRUD app 13KB
naf-db-2007-11-01.tar.gz 9KB
Install with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Naf_Validator .zip .tar.gz required for Naf_Record validation Conditional
 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,536
This week:241

For more information send a message to info at phpclasses dot org.