ZF-2849: Refactor Zend_Config_Ini for readablility

Issue Type: Improvement Created: 2008-03-10T16:58:14.000+0000 Last Updated: 2009-03-21T14:57:21.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Rob Allen (rob) Assignee: Rob Allen (rob) Tags: - Zend_Config

Related issues: Attachments: - Ini-zf2849-1.php


Following ZF-2843, it's clear that Zend_Config_Ini could be refactored to make the code more understandable and easier to maintain.


Posted by Rob Allen (rob) on 2008-03-10T17:07:07.000+0000

First attempt at a clean up. This improves the comments and adds new functions: _loadIniFile(), _loadAllSections() and _loadSection(). Most significantly __construct() is much reduced and so hopefully easier to understand.

Posted by Rob Allen (rob) on 2008-03-10T17:08:54.000+0000

This is the full Ini.php file for the first attempt at refactoring Zend_Config_Ini. It may be easier to see the improvements, by looking at the result.

Posted by Rob Allen (rob) on 2009-03-21T14:57:20.000+0000

Tidied up in svn r14415.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.