Source for file PGP_CMS_PAGE.phpclass
Documentation is available at PGP_CMS_PAGE.phpclass
* openCSP class file PGP_CMS_PAGE.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: PGP_CMS_PAGE.phpclass,v 1.5 2008/10/15 06:55:16 pitlinz Exp $
// ---------------------------------------------------------
// ---------------------------------------------------------
* openCSP class PGP_CMS_PAGE
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: PGP_CMS_PAGE.phpclass,v 1.5 2008/10/15 06:55:16 pitlinz Exp $
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* @constant string CLASS_SRC_FILE
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** class vars ------------------------------------------------------ */
/*** class methods --------------------------------------------------- */
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** compostion --------------------------------------------------- */
* @var PRO_GROUP $myProGroup
/*** attributes -------------------------------------------------- */
* show the current product group
* @var boolean $showPGPHeadline
* wether to show all products in the group and it's child groups
* or only show direct assigned products
* @var string $includeRoot
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* returns a array of variables used by the page object
* [FLDCLASS] name of DBMS_FIELD* class
* [CLASSVALS] array of values of [FLDCLASS]
* @global array $OCSP_CONF
$arr_ret =
parent::getObjVarDef();
$arr_ret['showPGPHeadline'] =
array(
'FLDCLASS' =>
'DBMS_FIELD_CHECKBOX',
'label' =>
t_admin("Produktgruppe Anzeigen"),
'checkText' =>
t_admin("Ja aktuelle Produktgruppe im Kopf anzeigen"),
$arr_ret['showPGPHeadline'] =
array(
'FLDCLASS' =>
'DBMS_FIELD_CHECKBOX',
'label' =>
t_admin("Produktgruppe Anzeigen"),
'checkText' =>
t_admin("Ja aktuelle Produktgruppe anzeigen"),
$arr_ret["tmpl_PGPHEADLINE"]=
array(
"FLDCLASS" =>
"DBMS_FIELD_FILESELECTLIST",
"label" =>
t_admin("Produktgruppe Template"),
"toolTip" =>
t_admin("Include Template für die Produktgruppe"),
$arr_ret['showPGPChildren'] =
array(
'FLDCLASS' =>
'DBMS_FIELD_CHECKBOX',
'label' =>
t_admin("Produkt Untergruppen Anzeigen"),
'checkText' =>
t_admin("Ja Untergruppen der aktuelle Produktgruppe anzeigen"),
$arr_ret["tmpl_PGPCHILDREN"]=
array(
"FLDCLASS" =>
"DBMS_FIELD_FILESELECTLIST",
"label" =>
t_admin("UnterProduktgruppe Template"),
"toolTip" =>
t_admin("Include Template für die Untergruppen der Produktgruppe"),
$arr_ret['showAllChildProducts'] =
array(
'FLDCLASS' =>
'DBMS_FIELD_CHECKBOX',
'label' =>
t_admin("Alle Produkte unter der Gruppe"),
'checkText' =>
t_admin("Ja, Untergruppen einschließen"),
$arr_ret["tmpl_PRODUCT"]=
array(
"FLDCLASS" =>
"DBMS_FIELD_FILESELECTLIST",
"label" =>
t_admin("Produkt Template"),
"toolTip" =>
t_admin("Include Template für die Produktdarstellung"),
$arr_ret['productPage'] =
array(
"FLDCLASS" =>
"DBMS_FIELD_PAGESELECT",
'label' =>
t_admin("Produktseite"),
'toolTip' =>
t_admin("Seite die für die Produktanzeige geöffnet wird")
* returns the product group of the page
$obj_menu =
$this->getMyMenuNode($debug);
* sets the product group of the page
* @param PRO_GROUP $aProGroup
* returns the product page object
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* renders the product group
$str_tmpl =
$this->getDBField('tmpl_PGPHEADLINE');
//echoDebugLine(__FILE__,__LINE__,"<p>" . $str_tmpl . "</p>");
* returns the child group content
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"productgroup found && showPGPChildren");
$str_tmpl =
$this->getDBField('tmpl_PGPCHILDREN');
foreach($arr_childGroups as &$obj_progroup)
//echoDebugLine(__FILE__,__LINE__,"<p>" . $str_tmpl . "</p>");
if ($obj_progroup->isOnline())
$str_ret .=
"<h2>" .
$obj_progroup->getTitle() .
"</h2>";
$str_tmpl =
$this->getDBField('tmpl_PRODUCT');
foreach($arr_products as &$obj_product)
* returns the content of the page
* @param int $chaShowMode
public function getContent($chaShowMode=
0,$debug=
False)
if ($this->getContentCalled())
throw
new Exception('content called twice');
$this->setContentCalled(True);
return parent::getContent($chaShowMode,$debug);
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"rendering product group");
if ($debug) $str_ret .=
"<hr /><h2>Debug</h2><div style=\"font-size:80%\">" .
ob_get_contents() .
"</div></hr>";
Documentation generated on Thu, 08 Jan 2009 17:47:58 +0100 by phpDocumentor 1.4.0a2