Source for file OCSP_AJAX_FLDEVENT.phpclass
Documentation is available at OCSP_AJAX_FLDEVENT.phpclass
* Class file OCSP_AJAX_FLDEVENT.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 __OCSP_PHPINCPATH__.
"common" .
_OCSP_DIRSEP_ .
"pcf_directory.phpinc";
require_once dirname(__FILE__
).
_OCSP_DIRSEP_ .
"OCSP_AJAX_FUNCTION.phpclass";
* Class OCSP_AJAX_FLDEVENT
* this class is designed to handle ajex functions
* @project Open CSP-Management
* @author Peter Krebs (pk) <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @var string $myEventMethode
* @var string $myFieldName
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* @param string $funcName
* @param string $funcInc the include file containing the php function
* @param string $funcMethode the methode of the ajax request
* @param string $funcMethode
function OCSP_AJAX_FLDEVENT(&$ajaxObj,&$aFldObj,$aEventMethode,$funcArgs=
NULL,$funcMethode=
AJAX_RQMODE_GET) {
$this->myFuncMethod =
$funcMethode;
* @param string $targetId
* @param DBMS_FLD $aField
* @param string $aEventMethode
* @param string $aFieldName
* if $this->myFieldName is empty "$dataArrname[$fld->name]" is returned
return $this->myField->getDataArrName().
"[".
$this->myField->getName().
"]";
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* returns the javascript function name
* returns the javascript representation of the function
* wrapper for field ".
$this->myField->getKey().
"
if (!ocspAjax_get_funcObj('".
$this->getFuncName().
"')) {
args[args.length]=new ocspAjax_funcArg('axFRM',".
$this->myField->getFrmId().
");
args[args.length]=new ocspAjax_funcArg('axFLD','".
$this->myField->getKey().
"');
args[args.length]=new ocspAjax_funcArg('axFLDNAME','".
$this->getFieldName().
"');
args[args.length]=new ocspAjax_funcArg('axMETH','".
$this->myEventMethode.
"');
args[args.length]=new ocspAjax_funcArg('axARRNAME','".
$this->myField->getDataArrName().
"');
args[args.length]=new ocspAjax_funcArg('axCURVAL',fldValue);
ocspAjax_debug(\"Value: \" + fldValue);
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* returns the cache values
Documentation generated on Thu, 08 Jan 2009 17:45:08 +0100 by phpDocumentor 1.4.0a2