Source for file DBMS_FIELD_EXTOBJ.phpclass
Documentation is available at DBMS_FIELD_EXTOBJ.phpclass
* Class file DBMS_FIELD_EXTOBJ.phpclass
* @project Open CSP-Management
* @author p.krebs@lvus.at
* @copyright © 2002-2003 by Peter Krebs and Landesverlag Unternehmensservice
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
require_once dirname(__FILE__
).
_OCSP_DIRSEP_.
"DBMS_FIELD.phpclass";
* Class DBMS_FIELD_EXTOBJ
* includes external Field Objects into the system
* @project Open CSP-Management
* @author p.krebs@lvus.at
* @copyright © 2002-2003 by Peter Krebs and Landesverlag Unternehmensservice
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
if ($debug) echo
"<p><b>DBMS_FIELD_EXTOBJ::require_objectFile(...)</b> (".
get_class($this).
")</p>";
require_once $GLOBALS['PROJECT']['PATH'].
$this->objectFile;
###############################
$this->unit=
$_POST['UNIT'];
function writeField($mode,$aValue=
"",$arrName=
"DBVAL") {
$ret=
parent::writeField($mode,$aValue,$arrName);
* returns the field value
* @param string $aValue the value
* @param array $err error array
* @param string $arrName name of the array to access fieldsarray gloabl ${$arrName}
function getValue($aValue,&$err,$arrName=
"DBVAL",$debug=
FALSE) {
if ($debug) echo
"<hr><p><b>DBMS_FIELD_EXTOBJ::getValue($aValue,$err,$arrName,$debug)</b> (".
get_class($this).
"/".
$this->myName.
")</p>";
if (($aValue ==
0) ||
(doubleval($aValue))) {
} else if (empty($aValue)) {
return $GLOBALS[$this->getGlobalDBObjIdx()]->qs_getNullStmt();
$err[$this->myName]['MSG']=
"NULL_NOT_ALLOWED";
$err[$this->myName]['MSG'] =
"NO_NUMBER";
* add slashes to the value to add it to a sql command
* @param string $aValue the value
* @param array $err error array
* @param string $arrName name of the global array to access field gloabl ${$arrName}
function slashedValue($aValue,&$err,$arrName=
"DBVAL",$debug=
FALSE) {
if ($debug) echo
"<hr><p><b>DBMS_FIELD_EXTOBJ::slashedValue($aValue,$err,$arrName,$debug)</b> (".
get_class($this).
"/".
$this->myName.
")</p>";
return $this->getValue($aValue,$err,$arrName,$debug);
Documentation generated on Thu, 08 Jan 2009 17:41:26 +0100 by phpDocumentor 1.4.0a2