boolean
checkSubmitData
([string $method = ""], [boolean $debug = False], string $contrClass)
-
string
$method: (POST|GET)
-
string
$contrClass: (sub)class Name of OCSP_FRMCONTR
-
boolean
$debug
instantiates a new class if $this->myControll not type of $contrClass
NOTE the class must exists or have it's code in __FILE__
OCSP_FRMCONTR
&getControllObj
([
string $contrClass =
"OCSP_FRMCONTR"], [
boolean $debug =
False])
-
string
$contrClass
-
boolean
$debug
add some values to the forms (hidden) command fields
array
getFormCmdFields
([boolean $debug = False])
if $contrClass is not set to "NO" a controll object will be created if none exists ($this->myControll) is empty
if $contrClass is set to "NO" $this->myControll is returned as is without checking that we
OCSP_FRMCONTR_LIST
&getListControll
([
string $contrClass =
"OCSP_FRMCONTR_LIST"], [
boolean $debug =
False])
-
string
$contrClass
-
boolean
$debug
OCSP_FRMVIEW_LIST
&getListView
([
string $viewClass =
"OCSP_FRMVIEW_LIST"], [
boolean $debug =
False])
-
string
$viewClass
-
boolean
$debug
get main commands for the form
used keywords:
- js: execute a java script
- default: open url
string
getSubmitAction
(int $mode, [string $type = 'ACTION'])
-
int
$mode
-
string
$type: ([ACTION|NEXT|RELOAD])
instantiates a new class if $this->myControll not type of $contrClass
NOTE the class must exists or have it's code in __FILE__
OCSP_FRMVIEW
&getViewObj
([
string $viewClass =
"OCSP_FRMVIEW"], [
boolean $debug =
False])
-
string
$viewClass
-
boolean
$debug
sets a controll
NOTE also changes the controll in $this->myView and sets the view in $aControll if $sync is True
void
setControll
(
&$aControll, [
boolean $sync =
True], [
boolean $debug =
False],
OCSP_FRMCONTR $aControll)
-
OCSP_FRMCONTR
$aControll
-
boolean
$sync
-
boolean
$debug
-
&$aControll
sets a main cmmonad of the form
used keywords:
- js: execute a java script
- default: open url
string
setSubmitAction
(int $mode, string $uri, [string $type = 'ACTION'])
-
int
$mode
-
string
$uri
-
string
$type: ([ACTION|NEXT|RELOAD])