Source for file OCSP_PRODUCT_CONF.phpclass
Documentation is available at OCSP_PRODUCT_CONF.phpclass
* openCSP class file OCSP_PRODUCT_CONF.phpclass
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: OCSP_PRODUCT_CONF.phpclass,v 1.3 2008/08/07 21:09:01 pitlinz Exp $
// ---------------------------------------------------------
// ---------------------------------------------------------
require_once __OCSP_PHPINCPATH__ .
"default_config" .
_OCSP_DIRSEP_ .
"products.conf.phpinc";
* openCSP class OCSP_PRODUCT_CONF
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: OCSP_PRODUCT_CONF.phpclass,v 1.3 2008/08/07 21:09:01 pitlinz Exp $
* ------------------------------------------------------------
* PGP_REWRITE_URL: url template for product group menu nodes (example: /$*PGP_TITLE$/pgp/$*PGP_ID$/$*MEN_ID$/)
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* @constant string CLASS_SRC_FILE
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** class vars ------------------------------------------------------ */
/*** class methods --------------------------------------------------- */
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** compostion --------------------------------------------------- */
/*** attributes -------------------------------------------------- */
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* returns the instance for a system
* @return OCSP_PRODUCTS_CONF
public static function &getInstance($system=
'OCSP_PRODUCT',$debug=
False)
if ($debug) echoDebugMethod(__FILE__
,"static","OCSP_PRODUCT_CONF::getInstance({$system})");
if (isset
(self::$instanceList[$system]))
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"object set");
$obj_new =
new OCSP_PRODUCT_CONF($system);
$obj_new->setConfArrays(self::$instanceList[$system]->getConfArrays());
unset
(self::$instanceList[$system]);
self::$instanceList[$system] =
$obj_new;
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"<pre>" .
print_r(self::$instanceList[$system],True) .
"</pre>");
return self::$instanceList[$system];
self::$instanceList[$system] =
new OCSP_PRODUCT_CONF($system);
return self::$instanceList[$system];
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
Documentation generated on Thu, 08 Jan 2009 17:47:07 +0100 by phpDocumentor 1.4.0a2