Source for file OCSP_FRMVIEW.phpclass
Documentation is available at OCSP_FRMVIEW.phpclass
* Class file OCSP_FRMVIEW.phpclass
* @project Open CSP-Management
* @author Peter Krebs (pk) <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
require_once dirname(__FILE__
).
"/languages/de.phpinc";
* @project Open CSP-Management
* @author Peter Krebs (pk) <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* an array of tags to show
* $btnTags[CMDNAME]=TAGTMPL
* array with button positions
* is used to select the icon dir
* @var OCSP_FRMCONTR $myControl
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* @param OCSP_FORM $aForm
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* @param OCSP_FORM $aForm
* @param OCSP_FRMCONTR $aControll
* @deprecated since pk-08-12-03
* sets the control object
* @param OCSP_FRMCONTR $aControl
* returns the control object
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* returns the db object from the form
if (!pcf_is_instance($this->myForm,'OCSP_FORM'))
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"returning stored blocks");
foreach($arr_blocks as &$obj_block)
if ($obj_block->isToShow($aMode,$debug))
$this->myBlocks[$obj_block->getId()]=
&$obj_block;
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* @return array of DBMS_FIELDS
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"returning stored fields");
$arr_flds=
$obj_block->getFields($aMode,$debug);
//echoDebugLine(__FILE__,__LINE__,"\$arr_flds: <pre>".print_r($arr_flds,TRUE)."</pre>");
foreach($arr_flds as &$obj_fld)
$obj_fld->setView($this);
ocsp_logError(__FILE__
,__LINE__
,"could not load field blocks for mode $aMode");
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* sets the button icon size
* NOTE this is used to get icon path in sysimages
* @param string $aSize (example "16x16")
* alias for setButtonImageTag
* @deprecated since pk-08-11-24
* buttons are enclosed by an <a>-tag which does the function.
* returns the button commands on pos
foreach($this->btnPos[1] as $str_cmd)
} else if (intval($pos) <
0) {
* returns the buttion image tag
* @global array $OCSP_CONF
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"IconPath: $str_iconPath");
return "<img src=\"" .
OCSP_CONF::getInstance()->getValue('SYSIMGURL') .
"icons-".
$this->btnIconSize.
"/$str_img\" alt=\"$aCmd\" border=\"0\" class=\"button\">";
return "<img src=\"" .
OCSP_CONF::getInstance()->getValue('SYSIMGURL') .
"icons-".
$this->btnIconSize.
"/edittrash.gif\" alt=\"$aCmd\" border=\"0\" class=\"button\">";
Documentation generated on Thu, 08 Jan 2009 17:46:34 +0100 by phpDocumentor 1.4.0a2