Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog (1) | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-01-09 (4 days ago) ![]() | ![]() ![]() ![]() | Total: 254 This week: 3 | All time: 7,851 This week: 141![]() |
Version | License | PHP version | Categories | |||
fuse-array 1.0.9 | BSD License | 5.3 | PHP 5, Data types |
Description | Author | |||
This class can manage arrays with read only properties. Innovation Award
|
|
<?php |
FuseArray is an implementation of an array with read-only capabilities.
A plain get-function. Identical to __get
An extended set-function which alse has the ability to set the property as read-only. If $fuseOut is set to true then the property will be read-only.
FuseOut will set the property defined by $name as read-only.
Convert is a static conservsion to FuseArray from a standard array or another FuseArray.
Import is a dynamic conservsion to FuseArray from a standard array or another FuseArray.
These functions are either basic functions in the class or functions for the implemented interfaces.
Can be used more or less as a standard array in many cases. The array functions in PHP (array_\*) will not work since the arrays produced by FuseArray are objects and not real arrays.
ConfigArray is an extend of FuseArray which implements a simple way to handle configurations based on ini-files.
ConvertIni is a static method that will take either an dual layered array or a filename as its first argument and convert this into an config array.
[section]
property=value
Will be converted into
section.property=value
ImportIni is a dynamic method that will take either an dual layered array or a filename as its first argument and convert this into an config array.
[section]
property=value
Will be converted into
section.property=value
This package can be found at the following places.
http://www.phpclasses.org/fuse-array
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
Class | Main file with class | ||
![]() ![]() |
Data | New license file | ||
![]() ![]() |
Data | Changed format of the readme from readme.txt to readme.md |
Version Control | Reuses | Unique User Downloads | Download Rankings | ||||||||||||||||
100% | 1 |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Other classes that need this package |
Class | Why it is needed | Dependency |
---|---|---|
PHP Background Service Caller | Loads the configuration for the class | Required |