checkControl (line
3294)
sets $this->myControll form $this->myForm if not pcf_is_instance_of $str_className
boolean
checkControl
([string $str_className = 'OCSP_FRMCONTR'], [boolean $debug = False])
-
string
$str_className
-
boolean
$debug
checkControll (line
3281)
alias for $this->checkControl()
boolean
checkControll
([string $str_className = 'OCSP_FRMCONTR'], [boolean $debug = False])
-
string
$str_className
-
boolean
$debug
clearError (line
2759)
void
clearError
()
editTabl_save (line
3095)
save the filed definition form
boolean
editTabl_save
([boolean $debug = False])
editTbl_getFieldEditArr (line
3074)
returns an array of field to bie shown in the edit form by using editTbl_echoForm
the array is in the form:
[_sectionName_]
[TITLE] -> string
[_rowName_]
[FLDLAB] (complete html code with <td></td>)
[FLDVAL] (complete html code with <td></td>)
[FLDTIT] (title of the label column)
NOTE as this is not implemented in the whole classTree at the moment ensure all parents use editTbl_echoForm() in theire editTblForm otherwise you'll get a mismatch of field order
array
editTbl_getFieldEditArr
([boolean $debug = False])
exportCSV (line
2883)
returns if the field is to be added to the csv export
boolen
exportCSV
()
getAjaxFldKey (line
2797)
returns a serialized array to identify the field in the called ajax script
string
getAjaxFldKey
()
getAssignment (line
2688)
void
getAssignment
( $aValue, &$err, [ $arrName = "DBVAL"], [ $debug = False])
-
$aValue
-
&$err
-
$arrName
-
$debug
getControl (line
3258)
returns the controll object
getControll (line
3247)
alias for $this->getControl()
getCSV_Value (line
2901)
returns the CSV value of field
string
getCSV_Value
(mixed $aValue, [string $arrName = "DBVAL"], [boolean $debug = False], char $txtSep)
-
mixed
$aValue
-
string
$arrName
-
char
$txtSep: enclose strings in $txtSep
-
boolean
$debug
getDOMId (line
3020)
returns a unique DOM id for the field
Note: $this->myDOMId MUST NOT be stored in the db make sure it is excluded
string
getDOMId
()
getErrorMsg (line
2733)
returns the errMsg
string
getErrorMsg
()
getExtJSConfigOptions (line
3416)
returns options of an ext js field config object
NOTE the return string is NOT enclosed by {}
array
getExtJSConfigOptions
([boolean $debug = False])
getExtJSxType (line
3400)
returns the xtype of the field
string
getExtJSxType
()
getFormFieldTag (line
3490)
returns the html code for the field value input / show
string
getFormFieldTag
(int $mode, [mixed $aValue = NULL], [boolean $debug = False])
-
int
$mode
-
mixed
$aValue
-
boolean
$debug
getFormLabelTag (line
3473)
returns the html tag for the label
string
getFormLabelTag
(int $mode, [boolean $debug = False])
getGrpFld (line
3526)
getGrpKey (line
3514)
string
getGrpKey
()
getInputName (line
3006)
returns the input name
string
getInputName
()
getJsName (line
2777)
retuns a string which can be used in js var and functions to name the field
string
getJsName
()
getSearchCompTypes (line
2468)
returns the html code for the search compare type select
string
getSearchCompTypes
(string $arrName)
getSearchInputTag (line
2453)
returns the html code for a searchformular element
string
getSearchInputTag
(mixed $aValue, [string $arrName = "DBVAL"])
-
mixed
$aValue: the value to set
-
string
$arrName
getTableValSelect (line
2502)
returns a html select with all values (distinct) where $aValue is selected
NOTE only works on database fields
string
getTableValSelect
( &$aValue, [string $arrName = ""], [string $selTagAdd = ""], [string $whereCond = ""], [ $nullLabel = ""], [ $debug = False], mixed $aValue)
-
mixed
$aValue
-
string
$arrName
-
string
$selTagAdd: added into <select ...>
-
string
$whereCond: added to query ($s_query="SELECT ... FROM TABLE ".$whereCond." ORDER BY")
-
&$aValue
-
$nullLabel
-
$debug
hasErrors (line
2723)
returns if the field has an error ($this->errMsg not empty)
boolean
hasErrors
()
jOCSP_getFieldObj (line
3357)
returns the javascript code to register the field to an form
string
jOCSP_getFieldObj
([boolean $debug = False])
js_register_field (line
2814)
js code that ensures the form is registered
string
js_register_field
([string $aJsName = ""], [string $aName = ""], [boolean $debug = False])
-
string
$aJsName
-
string
$aName
-
boolean
$debug
searchWhere (line
2658)
returns a where part for sql queries out of search form input
string
searchWhere
(array $aArr, [bool $debug = False])
-
array
$aArr: the posted array of the filed form the search form
-
bool
$debug
setControl (line
3235)
sets the controll object
setControll (line
3224)
alias for $this->setControl()
setDOMId (line
3036)
sets the unique DOM id for the field
void
setDOMId
(string $aDOMId)
setErrorMsg (line
2747)
sets an error msg
void
setErrorMsg
(string $aErrorMsg, [boolean $append = True], [boolean $debug = False])
-
string
$aErrorMsg
-
boolean
$append: (if True append the message else overwrite the old message)
-
boolean
$debug
setGrpKey (line
3506)
void
setGrpKey
(string $aKey)
slashedValue (line
2626)
returns the value with slashes create use in a db statement
string
slashedValue
(string $aValue, &$err, [string $arrName = "DBVAL"], [ $debug = False], array $err)
-
string
$aValue: the value
-
array
$err: error array
-
string
$arrName: DBVAL
-
&$err
-
$debug
xmladdDOMElement (line
2927)
bool;
xmladdDOMElement
( &$domObj, &$fldRoot, [ $base64 = True], [ $debug = False], string $fldRoot)
-
string
$fldRoot
-
&$domObj
-
&$fldRoot
-
$base64
-
$debug
xml_loadDomElement (line
2961)
void
xml_loadDomElement
( &$fldRoot, [ $debug = False])