Source for file CMS_PAGE_FORM.phpclass
Documentation is available at CMS_PAGE_FORM.phpclass
* Class file CMS_PAGE_FORM.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: CMS_PAGE_FORM.phpclass,v 1.5 2008/11/26 00:46:37 pitlinz Exp $
if (!defined('__OCSP_CMS_PHPINCPATH__')) require_once __OCSP_DEFAULTCONFPATH__.
"cms.conf.phpinc";
* Class file CMS_PAGE_FORM
* extends DBMS_FORM to handle different page classes
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: CMS_PAGE_FORM.phpclass,v 1.5 2008/11/26 00:46:37 pitlinz Exp $
/*** class constants --------------------------------------------- */
* @constant string CLASS_SRC_FILE
// ----------------------------------------------------------------------------------------
// construct, load methods
// ----------------------------------------------------------------------------------------
* sets the tableobject class and include from $dataArr and
* tries to instantiate by calling $this->getMyTblObj
* if class is set in $dataArr and it could not be instantiated FALSE is returned
* @param array $dataArr (normaly $_POST)
if (isset
($dataArr['FRMARRAYNAME']) && isset
($dataArr[$dataArr['FRMARRAYNAME']]['PAG_OBJCLASS']))
$str_postClass=
$dataArr[$dataArr['FRMARRAYNAME']]['PAG_OBJCLASS'];
if (isset
($OCSP_CONF['CMS']['PAGETYPE'][$str_postClass]))
$this->setTblObjClass($OCSP_CONF['CMS']['PAGETYPE'][$str_postClass]['CLASS']);
$this->setTblObjInc($OCSP_CONF['CMS']['PAGETYPE'][$str_postClass]['OBJINC']);
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"<p>table object <strong>".
$this->tblObj_class.
"</strong> set in \$$dataArr</p>");
// -------------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------------
* @param string $aFldName
* @param string $aTable (empty to search in all tables)
* @param int $aBlockId (-1 to search in all blocks)
* @version pk-08-07-12 (OBJVALS_)
function &getField($aFldName,$aTable=
"",$aBlockId=-
1,$debug=
False)
if ($obj_ret =
parent::getField($aFldName,$aTable,$aBlockId))
if (empty($aTable) &&
strstr($aFldName,"."))
list
($aTable,$aFldName)=
explode(".",$aFldName,2);
if ("T_CMS_PAGE" ==
$aTable)
return parent::getField($aFldName,"PAGEOBJVAL",$aBlockId,$debug);
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* returns if the current user can save the form in the current mode
* @global array $OCSP_OBJ
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* return true to check the form on reload
Documentation generated on Thu, 08 Jan 2009 17:39:33 +0100 by phpDocumentor 1.4.0a2