PHP Classes

Simple Object: Base class with common variable access functions

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 1,423 All time: 2,741 This week: 455Up
Version License Categories
simpleobject 1.0Freely DistributableLibraries, Language


This package provides a base class that has common functions for accessing class variables. It provides to any derived class the same interface of setter and getter functions, import(), export(), append(), register_filter(), unregister_filter(), apply_filter() etc..

A template engine class, a database query result fetcher class are just two examples of derived classes that share the same interface provided by the base class.

Picture of J.B.
Name: J.B. <contact>
Classes: 2 packages by
Country: Latvia Latvia
Age: 40
All time rank: 10424 in Latvia Latvia
Week rank: 286 Up2 in Latvia Latvia Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file 01_mysql_listing_sample.php Example SimpleObject in use: list MySQL table records in three lines of code
Accessible without login Plain text file 02_directory_listing_sample.php Example Sample use of class DirectoryListing
Accessible without login Plain text file DirectoryIterator.php Aux. class DirectoryIterator extends SimpleIterator
Accessible without login Plain text file listtemplate.php Aux. class ListTemplate provides an easy way to display lists of objects, it extends SimpleTemplate and shows yet another use of class SimpleObject
Accessible without login Plain text file simpleexamples.php Example Useless SimpleObject method usage examples
Accessible without login Plain text file simpleiterator.php Aux. (interface) class SimpleIterator which extends SimpleObject. It declares methods that all Iterators should have to be compatible with each other and classes using SimpleIterator e.g. class ListTemplate
Accessible without login Plain text file simplemysqlresultiterator.php Aux. class SimpleMysqlResulterator extends SimpleIterator
Plain text file SimpleObject.class.php Class class SimpleObject definition
Accessible without login Plain text file simpletemplate.php Aux. class SimpleTemplate provides a way to avoid typing PHP in line with HTML. This class extends SimpleObject class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,741
This week:455Up
 User Ratings  
 All time