Zend Framework

Add getSectionName() and areAllSectionsLoaded() methods

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.1.3
  • Fix Version/s: 0.2.0
  • Component/s: Zend_Config
  • Labels:
    None

Description

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.

Issue Links

Activity

Hide
Rob Allen added a comment -

Best to do this one after multiple sections are loadable!

Show
Rob Allen added a comment - Best to do this one after multiple sections are loadable!
Hide
Rob Allen added a comment -

Resolved in subversion revision 1344.

Show
Rob Allen added a comment - Resolved in subversion revision 1344.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: