PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (13)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,031 This week: 1All time: 3,567 This week: 560Up
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: 45
All time rank: 42211 in Russian Federation Russian Federation
Week rank: 416 Up24 in Russian Federation Russian Federation Down
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Files folder imageNaf (3 files)
Files folder imageunit_tests (1 directory)
Files folder imagedocs (4 files)
Files folder imageexample (1 file, 1 directory)

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

  Files folder image Files  /  unit_tests  
File Role Description
Files folder imageDatabase (4 files)

  Files folder image Files  /  unit_tests  /  Database  
File Role Description
  Accessible without login Plain text file TableTest_test.php Test Unit test case for Naf_Table
  Accessible without login Plain text file RecordTest_test.php Test Unit test case for Naf_Record
  Accessible without login Plain text file Abstract.php Test Helper class for unit-tests
  Accessible without login Plain text file Connection.php Test Naf_UnitTestDbConnection class - a helper for unit test cases

  Files folder image Files  /  docs  
File Role Description
  Accessible without login Plain text file README.Table.txt Doc. README for Naf_Table
  Accessible without login Plain text file README.Naf_Record.txt Doc. README
  Accessible without login Plain text file README.test_suite.txt Doc. README
  Accessible without login Plain text file README.Naf_Select.txt Doc. README

  Files folder image Files  /  example  
File Role Description
Files folder imagelib (1 file)
  Accessible without login Plain text file index.php Example example CRUD appplication

  Files folder image Files  /  example  /  lib  
File Role Description
  Plain text file Book.php Class ActiveRecord for the example CRUD app

Downloadnaf-db-2007-11-01.zip 13KB
Downloadnaf-db-2007-11-01.tar.gz
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Naf_Validator Download .zip .tar.gz required for Naf_Record validation Conditional
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,031
This week:1
All time:3,567
This week:560Up