Source for file DBMS_FIELD_LAYOUT_SHOWTMPL.phpclass
Documentation is available at DBMS_FIELD_LAYOUT_SHOWTMPL.phpclass
* Class file DBMS_FIELD_LAYOUT_SHOWTMPL.phpclass
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
require_once dirname(__FILE__
).
"/DBMS_FIELD_LAYOUT.phpclass";
* Class DBMS_FIELD_LAYOUT_SHOWTMPL
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
// ###########################################################
// OBJECT (CONST) VAR DECLARATION
// ###########################################################
* source file of the class
* @staticvar string $classSrcFile
* @var boolean $outputTemplate
// ###########################################################
// OBJECT SETTINGS METHODS
// ###########################################################
* save the filed definition form
$this->outputTemplate=
(isset
($_POST['outputTemplate']) ?
$_POST['outputTemplate'] :
"");
// ###########################################################
// ###########################################################
// ###########################################################
// OBJECT HTML FORM METHODS
// ###########################################################
* html output of the field (no value)
* @param int $mode show mode of the field
* @param mixed $aValue value of the field
* @param string $arrName array in Name of the html input form <input name=ARRNAME[FIELDNAME]>
* it also needs to be a global array global ${$arrName}
* @param bool $debug show debug info
* @return bool TRUE if an input field is written
* @version pk-05-02-04 set $fld->myDataArrName
global $
{$this->myDataArrName};
$debug=
($debug ||
$this->fldDebug); /* <pk-04-12-28 /> */
echoDebug(__FILE__
,"<p><b>DBMS_FIELD_LAYOUT_SHOWTMPL::getFieldTag($mode,$aValue,$debug)</b></p>",0);
$fldLst=
$frmObj->getFieldArr(TRUE);
if ($debug) echoDebug(__FILE__
,"<blockquote><p>myKey: ".
$this->getKey().
"<br />Fields: </p><pre>".
print_r($this->grpfldList,TRUE).
"</pre>",1);
foreach($fldLst as $key =>
$fld) {
if ($debug) echoDebug(__FILE__
,"<p>Checking Field: ".
$fld->getKey().
"</p>",2);
if (in_array($fld->getKey(),$this->grpfldList)) {
$fld->myDataArrName =
$this->myDataArrName; /* <pk-05-02-04 /> */
if ($debug) echoDebug(__FILE__
,"<blockquote>Adding Field: ".
($fld->getKey()).
" (".
get_class($fld->getKey()).
") Value: ".$
{$this->myDataArrName}[$fld->myName].
"</blockquote>",2);
$ret.=
$fld->getFieldTag($mode,$
{$this->myDataArrName}[$fld->myName],$debug,FALSE);
$ret.=
" ".
$fld->getLabel().
" ";
$GLOBALS['TMP_GRPFIELDS_'.
$this->myFrmId].=
$comma.
$fld->myName;
if ($debug) echoDebug(__FILE__
,"<blockqoute>Found but hidden</blockquote>",1);
if ($debug) echoDebug(__FILE__
,"</blockquote>",1);
// ###########################################################
// ###########################################################
// ###########################################################
// OBJECT HTML FORM METHODS
// ###########################################################
// ###########################################################
// OBJECT VALUE CHECK METHODS
// ###########################################################
} // end class DBMS_FIELD_LAYOUT_SHOWTMPL
Documentation generated on Thu, 08 Jan 2009 17:42:15 +0100 by phpDocumentor 1.4.0a2