Source for file OCSP_CMS_CONF.phpclass
Documentation is available at OCSP_CMS_CONF.phpclass
* openCSP class file OCSP_CMS_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_CMS_CONF.phpclass,v 1.3 2008/08/08 02:00:43 pitlinz Exp $
// ---------------------------------------------------------
// ---------------------------------------------------------
require_once __OCSP_PHPINCPATH__ .
"default_config" .
_OCSP_DIRSEP_ .
"cms.conf.phpinc";
* openCSP class OCSP_CMS_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_CMS_CONF.phpclass,v 1.3 2008/08/08 02:00:43 pitlinz Exp $
* ------------------------------------------------------------
* MEN_REWRITE_URL: rewrite template (example /$*MEN_TITLE$/menu/$*PROJ_ID$/$*MEN_ID$/$*PAG_ID$/)
* CMS_URL: url to call for cms content
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* @constant string CLASS_SRC_FILE
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** class vars ------------------------------------------------------ */
/*** class methods --------------------------------------------------- */
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** compostion --------------------------------------------------- */
/*** attributes -------------------------------------------------- */
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* returns the instance for a system
public static function &getInstance($system=
'OCSP_CMS',$debug=
False)
if ($debug) echoDebugMethod(__FILE__
,"static","OCSP_CMS_CONF::getInstance({$system})");
if (isset
(self::$instanceList[$system]))
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"object set");
$obj_new =
new OCSP_CMS_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_CMS_CONF($system);
return self::$instanceList[$system];
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* returns the state arr in $GLOBALS['OCSP_CMS']['PAGESTATE']
if ($arr_states =
self::getValue('PAGESTATE'))
if (isset
($arr_states[intval($state)]))
return $arr_states[intval($state)];
'NAME' =>
'undefined state',
* returns an array with the online page states states
if ($arr_states =
self::getValue('PAGESTATE'))
foreach($arr_states as $int_id =>
$arr_state)
if (isset
($arr_state['SHOW']) &&
$arr_state['SHOW'])
Documentation generated on Thu, 08 Jan 2009 17:45:13 +0100 by phpDocumentor 1.4.0a2