<?php
/**
* @version 1.0.0
* @category Anahita Social Engineâ¢
* @copyright Copyright (C) 2008 - 2010 rmdStudio Inc. and Peerglobe Technology Inc. All rights reserved.
* @license GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
* @link http://www.anahitapolis.com
*/
class AnUtilParameter extends JParameter
{
function loadSetupFile($path)
{
$result = false;
if ($path)
{
$xml = & JFactory::getXMLParser('Simple');
ob_start();
include 'tmpl://'.$path;
$content = ob_get_contents();
ob_end_clean();
if ($xml->loadString($content))
{
if ($params = & $xml->document->params) {
foreach ($params as $param)
{
$this->setXML( $param );
$result = true;
}
}
}
}
else
{
$result = true;
}
return $result;
}
}