PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,031 All time: 3,567 This week: 206Up
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: 164 Up10 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files (13)  
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 (13)  /  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 (13)  /  unit_tests  
File Role Description
Files folder imageDatabase (4 files)

  Files folder image Files (13)  /  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 (13)  /  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 (13)  /  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 (13)  /  example  /  lib  
File Role Description
  Plain text file Book.php Class ActiveRecord for the example CRUD app

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
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:0
All time:3,567
This week:206Up