Source for file OCSP_AJAXFORM.phpclass
Documentation is available at OCSP_AJAXFORM.phpclass
* Class file OCSP_AJAXFORM.phpclass
* @project Open CSP-Management
* @author Peter Krebs (pk) <pitlinz@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.phpclass";
require_once dirname(__FILE__
).
_OCSP_DIRSEP_ .
"OCSP_AJAX_FLDEVENT.phpclass";
* this class is designed to handle ajex requests
* @project Open CSP-Management
* @author Peter Krebs (pk) <pitlinz@sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @constant string CLASS_SRC_FILE
* @var string $jsAction the action used
protected $jsAction=
"/system/forms/ajax_request.php";
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* casts an ajax form object form an existing ajax object
* @param OCSP_AJAX &$aObj
if ($debug) echoDebugMethod(__FILE__
,'static call',"OCSP_AJAXFORM::castFromAjaxObj()");
if ($debug) echoDebugLine(__FILE__
,__LINE__
,"object is already a form obj");
$obj_ret->set_myObject_vars($aObj->get_myObject_vars());
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* @param DBMS_FORM $aFrmObj
* register a field if not already done
* @param DBMS_FIELD $aFldObj
* @param string $aEveMeth the field methode to call on the event
* @param array $func_args
* @param string $rqMethode request methode
* @returns OCSP_AJAX_FLDEVENT
function ®isterFieldEvent(&$aFldObj,$aEveMeth,$func_args=
NULL,$rqMethode=
AJAX_RQMODE_GET,$debug=
FALSE) {
return $this->functionLst[$aFldObj->getKey().
"_".
$aEveMeth];
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// jOCSP static functions
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* returns the js command to register an error
* @param boolean $silient
* @param string $str_debugInfo
$str_ret =
"jOCSP.addError({";
$str_ret .=
",reqURI: '" .
pcf_js_escape($_SERVER['REQUEST_URI']) .
"'";
* returns the js code to open a form in a new layer
* @param string $str_OuterId
* @param OCSP_FRM_VIEW $viewObj
static function jOCSP_getFormLayer($str_OuterId,&$viewObj,$frmMode=
FRM_MODE_EDIT,$debug=
FALSE)
jOCSP.requestScript('" .
$OCSP_CONF['SYSTEMURL'] .
"jOCSP/jOCSP_dom.js',true);
obj_shadowLayer = jOCSP.dom.shadowLayer('" .
$str_OuterId .
"',true);
if (obj_frmLayer = jOCSP.dom.formLayerCreate('" .
$str_OuterId .
"'))
obj_frmLayer.innerHTML = '" .
pcf_js_escape($viewObj->getForm($frmMode)) .
"';
jOCSP.dom.shadowLayerClear('" .
$str_OuterId .
"');
Documentation generated on Thu, 08 Jan 2009 17:45:07 +0100 by phpDocumentor 1.4.0a2