Source for file DBMS_FIELD_FLOATFORMAT.phpclass
Documentation is available at DBMS_FIELD_FLOATFORMAT.phpclass
* Class file DBMS_FIELD_FLOATFORMAT.phpclass
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
require_once dirname(__FILE__
).
_OCSP_DIRSEP_.
"DBMS_FIELD_FLOAT.phpclass";
* Class DBMS_FIELD_FLOATFORMAT
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* source file of the class
* @var string $classSrcFile
* @var string $inputAdd overwrite default
protected $inputAdd=
"style=\"text-align:right;\"";
// ###########################################################
// OBJECT SETTINGS METHODS
// ###########################################################
// ###########################################################
// FIELD DEFINITION DATA METHODS
// ###########################################################
* adds $this->unit to to parent::getInputTag()
* @param mixed $aValue the value to set
* @param string $nameAdd append something to name like "[VALUE]" for search forms
* @version pk-06-05-18 inputAdd added
* @version pk-06-09-06 align right by default
function getInputTag($aValue,$arrName,$nameAdd=
"",$debug=
FALSE) {
$tag .=
"name=\"".
$arrName.
"[".
$this->myName.
"]".
$nameAdd.
"\" ";
if ((!empty($aValue)) ||
$aValue ===
"0") {
else $tag.=
" align=\"right\""; // <pk-06-09-06 />
$tag .=
" style=\"text-align:right;\" />";
* returns the html representation of the field
* @param mixed $aValue the falue
* @param string $arrName name of the global array holding data values
* @param boolean $debug show debug info
* @return mixed the html representation of the field
if ($debug) echo
"<p><b>DBMS_FIELD_FLOATFORMAT::getScreenValue(".
$aValue.
",...)</b> (".
get_class($this).
"/".
$this->myName.
")</p>\n";
Documentation generated on Thu, 08 Jan 2009 17:41:39 +0100 by phpDocumentor 1.4.0a2