OCSP_FORM_BLOCK
OCSP_FORM_BLOCK
(
&$aForm, [
boolean $debug =
False],
OCSP_FORM $aForm)
adds a field to $this->myFields and removes it from the original block
void
addFieldObj
(
&$aField, [
boolean $debug =
False],
DBMS_FIELD $aField)
creates a new field and add it to the block
DBMS_FIELD
&addNewField
(
string $colName,
string $colType, [
string $table =
"__NO-DBFIELD__"], [
int $size =
0], [
boolean $debug =
False])
-
string
$colName
-
string
$colType
-
string
$table
-
int
$size
-
boolean
$debug
add all columns in a table to the block
boolean
addTable
(string $aTable, [boolean $asHidden = True], [boolean $debug = False])
-
string
$aTable
-
boolean
$asHidden: if true the columns are added as hidden fields
-
boolean
$debug
generates a new block form from a database row
-
OCSP_FORM
$aForm
-
array
$row
-
boolean
$debug
-
&$aForm
returns the db object from the form
OCSP_DB
&getDBObj
([
boolean $debug =
False])
Redefinition of:
- OCSP_OBJ::getDBObj()
- allowed modes are:
returns the form export string (php array)
string
getExportString
()
returns the extJS configuration options for the block
string
getExtConf
()
returns a field object
DBMS_FIELD
&getField
(
string $aFldName, [
string $aTable =
""], [
string $aFldKey =
""], [
boolean $debug =
False])
-
string
$aFldName
-
string
$aTable: (empty to search in all tables)
-
string
$aFldKey
-
boolean
$debug
array
getFields
([int $mode = -1], [boolean $debug = False])
-
int
$mode: (-1 all modes)
-
boolean
$debug
int
getLinkedFromBlockId
()
int
getLinkedFromFormId
()
mixed
getMyDBColValue
(string $col)
returns the number of fields in the form
void
getNofFields
([int $mode = -1], [boolean $debug = False])
returns an array with the show fields
array
getShowFields
()
returns $this->FRB_NAME if intval($this->getId()
string
getTitle
()
checks if we have a field in $scope
boolean
hasFieldInScope
(string $scope, [boolean $debug = False])
-
string
$scope
-
boolean
$debug
imports the form from an array NOTE: does not save the form
void
importFromArray
(array $impArray, [boolean $debug = False])
-
array
$impArray
-
boolean
$debug
returns if the block is linked from another form
boolean
isLinked
()
returns if the block is to show in $mode checks $this->show.... and FRB_GROUP_...
boolean
isToShow
(int $mode, [boolean $debug = False])
loads the block form the database
void
loadFromDB
([boolean $debug = False])
loads the fields form the database
void
loadMyFieldsFromDb
([boolean $debug = False])
moves a field in the block
boolean
moveField
( &$field, [int $movedir = 0], [int $newPos = 0], [boolean $debug = False], mixed $field)
-
mixed
$field: (DBMS_FIELD or field name)
-
int
$movedir: (-1 = up,0=position,1=down)
-
int
$newPos
-
boolean
$debug
-
&$field
removes the field from the block not from the database
void
removeFieldObj
(
&$aField, [
boolean $debug =
False],
DBMS_FIELD $aField)
sets the database row to the object
void
setDBRow
(array $dbRow, [boolean $debug = False])
-
array
$dbRow
-
boolean
$debug
sets the block id to the object and the fields
void
setId
(unknown_type $aId)
void
setMyDBColValue
(string $col, mixed $val)
void
setName
(string $aName)
void
setOrderNr
(int $ordNr)
writes the field data to T_DBMS_FORMFIELDS
void
storeFldToDb
(
DBMS_FIELD $aFld, [
boolean $debug =
False], [
foreceLinked $forceLinked =
False])
-
DBMS_FIELD
$aFld
-
boolean
$debug
-
foreceLinked
$forceLinked: (if false linked block fields are not stored. this should only be tree if a block is linked to hide existing fields)
stores the block to the database
void
storeToDB
([boolean $debug = False])
updates a block form $_POST[$arrName] values
boolean
updateBlockFromPost
([string $arrName = 'DBVAL'], [array $colNames = NULL], [boolean $debug = False])
-
string
$arrName
-
array
$colNames
-
boolean
$debug
void
writeToFileCache
(resource $hFile, [boolean $debug = False])
-
resource
$hFile
-
boolean
$debug
Inherited Methods
Inherited From OCSP_OBJ
OCSP_OBJ::castObj()
OCSP_OBJ::cloneMe()
OCSP_OBJ::currentUser()
OCSP_OBJ::dbConnect()
OCSP_OBJ::defaultDBObj()
OCSP_OBJ::defaultReadDBObj()
OCSP_OBJ::defaultWriteDBObj()
OCSP_OBJ::getConf()
OCSP_OBJ::getDBObj()
OCSP_OBJ::get_myClassConstant()
OCSP_OBJ::get_myObject_vars()
OCSP_OBJ::get_mySourceFile()
OCSP_OBJ::isConnected()
OCSP_OBJ::isMultiByteStr()
OCSP_OBJ::isUTF8()
OCSP_OBJ::setConf()
OCSP_OBJ::setDBObj()
OCSP_OBJ::set_myObject_vars()
OCSP_OBJ::set_myVarsFrom()