Issue Details (XML | Word | Printable)

Key: ZF-414
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Rob Allen
Reporter: Rob Allen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Add getSectionName() and areAllSectionsLoaded() methods

Created: 03/Oct/06 04:11 PM   Updated: 05/Jul/07 02:43 PM   Resolved: 25/Oct/06 02:40 AM
Component/s: Zend_Config
Affects Version/s: 0.1.3
Fix Version/s: 0.2.0

Time Tracking:
Not Specified

Issue Links:
Dependency
 


 Description  « Hide

These methods will allow for easy retrieval of the way that the Zend_Config instance was loaded without having to store it outside the class. This is particularly useful where a Zend_Config object instance is stored and fetched using an application registry.

getSectionName() will return either a string or an array of string depending on how the Zend_Config was loaded. If it was loaded using a single section name, then getSectionName() will return a string. If it was loaded using mutliple section names or null (all sections) then it will return an array.

areAllSectionsLoaded() will return a boolean to indicate if the entire ini file was loaded.



Rob Allen added a comment - 03/Oct/06 04:11 PM

Best to do this one after multiple sections are loadable!


Rob Allen added a comment - 25/Oct/06 02:40 AM

Resolved in subversion revision 1344.