PHP Classes

StructObject: Create objects from list of strict type variables

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-02-14 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 323 All time: 6,560 This week: 1,492Up
Version License PHP version Categories  
structobject 1.0GNU General Publi...5.0PHP 5, Data types
Description Author  

This class can be used to create objects from list of strict type variables.

It takes a string with the names of types of variables that the current object should have.

The class only allows setting such variables to values of the specified types. The variables may not be unset.

Innovation Award  
PHP Programming Innovation award nominee
July 2009
Number 12
Sometimes you need to use objects just for the purpose of passing of group or properties with values that have to be of specific types.

This class provides a way to create objects with variables that can only be set to values of types defined in a specification string.

Manuel Lemos
Picture of Benjamin Falk
Name: Benjamin Falk <contact>
Classes: 3 packages by
Country: Austria Austria
Age: 24
All time rank: 107311 in Austria Austria
Week rank: 1752 Down15 in Austria Austria Down
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Accessible without login Plain text file Struct.php Class Main-file
Accessible without login Plain text file example.php Example Example
Accessible without login Plain text file example2.php Example Creating your own Class by extending StructObject
Accessible without login Plain text file LICENCE Lic. GNU-Licence
Accessible without login Plain text file README Doc. Tutorial

 Version Control Unique User Downloads Download Rankings  
 0%Total:323All time:6,560
 This week:0This week:1,492Up