Login   Register  
PHP Classes
elePHPant
Icontem

Building an Identity Map in PHP: Retrieve objects avoiding multiple instances

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 (23)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-10-01 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 436 All time: 5,699 This week: 984Up
Version License PHP version Categories  
php-identity-map 1BSD License5.0PHP 5, Databases, Design Patterns
Description Author  

This package can store and retrieve objects in persistent storage containers avoiding to have multiple instances of the same object in memory.

It can use a mapper class to store objects of a class in a container like for instance a database table.

It can also retrieve the objects from the container assuring that only one instance of the same object is retrieved into memory.

Picture of Gjero Krsteski
Name: Gjero Krsteski <contact>
Classes: 3 packages by
Country: Germany Germany
Age: 35
All time rank: 1834118 in Germany Germany
Week rank: 1555 Up79 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imagedatabase (2 files)
Files folder imagesrc (1 file, 3 directories)
Files folder imagetests (1 file, 2 directories)
Plain text file autoload.php Class autoloder
Accessible without login Plain text file phpunit.xml.dist Data phpunit configuration
Accessible without login Plain text file README.markdown Doc. README
Accessible without login Plain text file test-bootstrap.php Aux. bootstraping
Accessible without login Image file uml-php-identity-map.gif Data Auxiliary data

  Files folder image Files  /  database  
File Role Description
  Accessible without login Plain text file tbl_article.sql Data Auxiliary data
  Accessible without login Plain text file tbl_user.sql Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageframework (3 files)
Files folder imagemodel (2 files)
Files folder imagepersistence (3 files)
  Plain text file Repository.php Class Class source

  Files folder image Files  /  src  /  framework  
File Role Description
  Plain text file IdentityMap.php Class the indentity-map
  Plain text file MapperException.php Class mapper exception
  Plain text file RecursiveClassLoder.php Class Class source

  Files folder image Files  /  src  /  model  
File Role Description
  Plain text file Article.php Class Class source
  Plain text file User.php Class the user model

  Files folder image Files  /  src  /  persistence  
File Role Description
  Plain text file AbstractMapper.php Class Class source
  Plain text file ArticleMapper.php Class Class source
  Plain text file UserMapper.php Class the user mapper

  Files folder image Files  /  tests  
File Role Description
Files folder imagemodel (2 files)
Files folder imagepersistence (2 files, 1 directory)
  Plain text file RepositoryTest.php Class Class source

  Files folder image Files  /  tests  /  model  
File Role Description
  Plain text file ArticleTest.php Class Class source
  Accessible without login Plain text file UserTest.php Test user model test

  Files folder image Files  /  tests  /  persistence  
File Role Description
Files folder imagefixture (2 files)
  Plain text file ArticleMapperTest.php Class Class source
  Accessible without login Plain text file UserMapperTest.php Test UserMapperTest

  Files folder image Files  /  tests  /  persistence  /  fixture  
File Role Description
  Accessible without login Plain text file article-seed.xml Data Auxiliary data
  Accessible without login Plain text file user-seed.xml Data user-seed

 Version Control Unique User Downloads Download Rankings  
 100%Total:436All time:5,699
 This week:0This week:984Up
 User Comments (1)