Location: PHPKode > projects > synType CMS > setup/wizards/cmssetup/wiz.cmssetup.php
<?php
/**
 *  synType CMS Setup
 *  Module: Setup Wizard
 *
 *  Copyright © 2004-2009 V. Puttrich, MindArray
 *
 *  http://www.mindarray.eu
 *
 *  Author: V. Puttrich, MindArray
 * ----------------------------------------------------------------------------
 *  $Id$
 * ----------------------------------------------------------------------------
 *
 *  This file is part of synType CMS.
 *
 *  synType CMS is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  synType CMS is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with libMail. If not, see <http://www.gnu.org/licenses/>.
 *
 * ----------------------------------------------------------------------------
 **/


class wizCmssetup extends wizWizard
{
	public $sTitle;
	public $aPages;

	//-------------------------------------------------------------------------
	// Construct/Destruct
	//-------------------------------------------------------------------------

	public function __construct($nCurWizPage, $sDataDir)
	{
		$this->sTitle = '';
		$this->aPages = array();
		$this->_loadIni();

		parent::__construct($nCurWizPage, $sDataDir);
	}

	public function __destruct()
	{
		parent::__destruct();
	}

	private function _loadIni()
	{
		$aTmp = parse_ini_file(dirname(__FILE__) .'/wizard.ini', true);

		$this->sTitle = (isset($aTmp['WIZARD']))? $aTmp['WIZARD']['title']: 'Wizard';

		if(isset($aTmp['PAGES'])){
			$this->aPages[] = array('id' => '', 'name' => '');
			foreach($aTmp['PAGES'] as $sModule => $sLabel){
				$this->aPages[] = array('id' => $sModule, 'name' => $sLabel);
			}
		}
	}

}

?>
Return current item: synType CMS