Back to index

php5  5.3.10
inigroups.inc
Go to the documentation of this file.
00001 <?php
00002 
00012 if (!class_exists("KeyFilter", false)) require_once("keyfilter.inc");
00013 if (!class_exists("DbaReader", false)) require_once("dbareader.inc");
00014 
00028 class IniGroups extends KeyFilter
00029 {
00035        function __construct($file) {
00036               parent::__construct(new DbaReader($file, 'inifile'), '^\[.*\]$');
00037        }
00038 
00042        function current() {
00043               return substr(parent::key(),1,-1);
00044        }
00045 
00049        function key() {
00050               return substr(parent::key(),1,-1);
00051        }
00052 }
00053 
00054 ?>