Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (13)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-11-01 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 882 This week: 1All time: 3,685 This week: 1,413Up
Version License PHP version Categories  
naf-db 1.0GNU General Public Lice...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
Name: Victor Bolshov <contact>
Classes: 6 packages by
Country: Russian Federation Russian Federation
Age: 35
All time rank: 53112 in Russian Federation Russian Federation
Week rank: 484 Up11 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 1x

  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 9KB
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:882All time:3,685
 This week:1This week:1,413Up