Login   Register  
PHP Classes
elePHPant
Icontem

Property

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Lucas Araújo  >  Property  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Property
Base name: property
Description: Add read-only class variables dynamically
Related classes:
Version: -
PHP version: 5
License: GNU General Public License (GPL)
All time users: 542 users
All time rank: 4400
Week users: 1 user
Week rank: 2417
 

  Author  
Picture of Lucas Araújo
Name: Lucas Araújo <e-mail contact>
Packages: 2 Browse all classes by Lucas Araújo Browse all classes by
Country: Brazil Brazil - PHP jobs in Brazil
Age: 31
All time rank: 1427104 in Brazil Brazil
Week rank: 691 Up46 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description  
This package can be used to add and remove variables to a class dynamically at run-time.

The variables may be made read-only. Read-only variables may not be changed or removed.

Each variable may have associated custom setter and getter functions in order to implement special purpose behavior when the variable is changed or retrieved.

  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
December 2006
Number 9
Under PHP 5, you can have classes with variables with restricted access using private and protected accessor clauses. However, these keywords do not provide read-only access to a variable.

This class implements read-only access control into class variables. It uses special getter and setter functions to overcome the original access control restrictions of PHP 5.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file Property.php Class Property and Value classes
Plain text file PropertyTest.php Example Property class test

Download all files: property.tar.gz property.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.