Source for file CMS_CHAPTER_FORM.phpclass
Documentation is available at CMS_CHAPTER_FORM.phpclass
* Class file CMS_CHAPTER_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_CHAPTER_FORM.phpclass,v 1.8 2008/12/17 16:28:51 peterkrebs Exp $
* Class file CMS_CHAPTER_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_CHAPTER_FORM.phpclass,v 1.8 2008/12/17 16:28:51 peterkrebs 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 ($debug) echoDebugLine(__FILE__,__LINE__,"\$dataArr:<pre>".print_r($dataArr,True)."</pre>");
if (!($int_chaId =
(isset
($dataArr[$dataArr['FRMARRAYNAME']]['CHA_ID']) ?
intval($dataArr[$dataArr['FRMARRAYNAME']]['CHA_ID']) :
0)))
$int_chaId =
(isset
($dataArr['CHA_ID']) ?
intval($dataArr['CHA_ID']) :
0);
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"Setting myTblObj from CHA_ID");
if (!($int_chaTmplId =
(isset
($dataArr[$dataArr['FRMARRAYNAME']]['CTMP_ID']) ?
intval($dataArr[$dataArr['FRMARRAYNAME']]['CTMP_ID']) :
0)))
if (!($int_chaTmplId =
(isset
($dataArr['CTMP_ID']) ?
intval($dataArr['CTMP_ID']) :
0)))
$int_chaTmplId =
(isset
($_GET['CTMP_ID']) ?
intval($_GET['CTMP_ID']) :
0);
$this->myTblObj =
$obj_tmpl->getNewChapter();
throw
new Exception('CTMP_ID ' .
$int_chaTmplId .
' NOT FOUND');
$obj_chaTmpl =
$this->myTblObj->getMyTemplate();
$obj_chaTmpl->addInputFieldsToForm($this);
// -------------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------------
* @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_field =
parent::getField($aFldName,$aTable,$aBlockId))
// we have an object value
if ($obj_field =
parent::getField($aFldName,'CHAOBJVAL',$aBlockId,$debug))
if ($obj_field =
parent::getField($aFldName,'CHAOBJVAL',$aBlockId,$debug))
if ($obj_field =
parent::getField($aFldName,'CHAPTER',$aBlockId,$debug))
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"old field found: " .
$obj_field->getKey());
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* returns if the current user can save the form in the current mode
* @global array $OCSP_OBJ
Documentation generated on Thu, 08 Jan 2009 17:38:36 +0100 by phpDocumentor 1.4.0a2