OCSP_FORMImplements interfaces:
Database Formular Basic Elements this class is without any layout elements to extend to what ever is needed
Located in /db/forms/OCSP_FORM.phpclass (line 51)
OCSP_OBJ | --OCSP_FORM
| Class | Description |
|---|---|
CLI_FORM
|
Class file CLI_FORM |
CLI_PROFILE_FORM
|
Class CLI_PROFILE_FORM handels forms for client profiles overwrites DBMS_FORM database functions to store the form in a row of T_CLI_PROFILES instead of T_DBMS_FORM |
CLI_STAFF_FORM
|
Class file CLI_STAFF_FORM |
CMS_CHAPTER_FORM
|
Class file CMS_CHAPTER_FORM |
CMS_MENU_FORM
|
openCSP class CMS_MENU_FORM |
CMS_PAGE_FORM
|
Class file CMS_PAGE_FORM |
OCSP_FORM_MODULE
|
openCSP class OCSP_FORM_MODULE |
static OCSP_FORM
&factory_from_cacheArr
(array $cacheArr, [string $className = NULL], [boolean $debug = False])
static OCSP_FORM
&factory_from_id
(int $aId, [string $className = ''], [boolean $debug = False], [boolean $forceNew = False])
static OCSP_FORM
&factory_from_name
( $aName, [float $className = NULL], [boolean $debug = False], [boolean $forceNew = False], int $aId)
static string
findForm_getHTMLOptionList
([string $aTable = NULL], [int $selectedForm = 0], [boolean $debug = False])
static void
getFieldClassDesc
([ $aClassName = 'DBMS_FIELD'], [boolean $debug = False], array $aClass)
static OCSP_FORM
&get_existing_instance
(mixed $frmIdName, string $className, [boolean $debug = False])
boolean
addNewBlockFromPost
([string $arrName = 'DBVAL'], [array $colNames = NULL], [boolean $debug = False])
DBMS_FIELD
factory_field
(string $fldName, [string $fldClass = ''], [array $dbDesc = array()], [array $fieldValues = array()], [boolean $debug = False])
string
getErrors
([boolean $withFields = False], [int $returnType = FRM_DATATYPE_STRING], [boolean $debug = False])
DBMS_FIELD
&getField
(string $aFldName, [string $aTable = ""], [int $aBlockId = -1], [boolean $debug = False])
string
getHTMLLstFromQuery
( &$nofRows, [string $query = ""], [array $links = NULL], [string $sortLnk = NULL], [int $limit = 0], [int $offset = 0], [boolean $debug = False], int $nofRows)
OCSP_FRMCONTR_LIST
&getListControll
([string $contrClass = "OCSP_FRMCONTR_LIST"], [boolean $debug = False])
OCSP_FRMVIEW_LIST
&getListView
([string $viewClass = "OCSP_FRMVIEW_LIST"], [boolean $debug = False])
void
hideField
(string $aFldName, [string $aTable = ""], [string $scope = "all"], [int $aBlockId = -1], [boolean $debug = False])
void
initCheckSubmitData
(array $frmSettings, string $dataArrName, array $frmValues, [boolean $debug = False])
OSCP_FORM_BASIC
&loadFromDb
([int $aId = 0], [string $aName = ""], [float $revision = 0.0], boolean $debug)
void
setControl
( &$aControl, [boolean $sync = True], [boolean $debug = False], OCSP_FRMCONTR $aControl)
void
setControll
( &$aControl, [boolean $sync = True], [boolean $debug = False], OCSP_FRMCONTR $aControl)
static mixed
$dbmsFieldClassDesc
= array() (line 93)
static mixed
$dbmsFieldTypeClasses
= array() (line 98)
static mixed
$form_instances
= array() (line 83)
int
$frmMode
(line 505)
int
$FRM_DEBUG
= 0 (line 425)
string
$FRM_DESC
= "" (line 430)
boolean
$FRM_DISABLEAJAXCHANGEFORM
= 0 (line 445)
disable to check the form on ajax relaod
int
$FRM_ID
= 0 (line 385)
db attributes stored in T_DBMS_FORM
boolean
$FRM_ISDEFLT
= False (line 410)
string
$FRM_JOIN
= "" (line 405)
string
$FRM_LAYOUT
= "" (line 420)
string
$FRM_LSTGROUPS
= "" (line 435)
string
$FRM_NAME
= "" (line 390)
int
$FRM_SRCVERSION
= 4 (line 415)
string
$FRM_TABLES
= "" (line 395)
string
$FRM_TITLE
= "" (line 400)
array
$layoutFields
= array() (line 480)
array
$listGroups
= array() (line 493)
array
$loadedUserRights
= array() (line 552)
alread loaded userrights from the db
OCSP_AJAXFORM
$myAjaxObj
= NULL (line 348)
the ajax object used by the fields
OCSP_FORM_BLOCK
$myBlocks
= array() (line 315)
OCSP_FRMCONTR_LIST
$myControl
= NULL (line 327)
OCSP_FORM_DBCONTROLL
$myDBControll
= NULL (line 333)
array
$myDBValues
= array() (line 451)
array
$myErrors
= array() (line 511)
array
$myFormDBCols
= array('FRM_ID','FRM_NAME','FRM_TITLE','FRM_CLASS',
boolean
$myFormValuesAreSet
= False (line 364)
int
$myInstanceId
(line 358)
index in self::instances_byId
array
$myPassThroughFields
= array() (line 532)
array of fields which have to been pass through to class
if you need to add values to the form data on save without having it in the form available add it this array
the fields will be passed encrypted and overwrites values set in the form
array
$myTables
= array() (line 378)
array with all tables the form uses note Index 0 is considered as master table the first table to load.
if the tables are joined the order of adding to the join depends on the index
the array is populated by exploding $this->FRM_TABLES (,-seperated)
DBMS_TABLE_OBJ
$myTblObj
= NULL (line 340)
the current table object class
OCSP_FRMVIEW_LIST
$myView
= NULL (line 321)
string
$my_jsId
= "" (line 517)
mixed
$rightsSet
= 0 (line 545)
array
$submitActions
= array() (line 499)
string
$tblObj_class
= NULL (line 473)
class file of the table object
string
$tblObj_include
= NULL (line 467)
include file for the table object
Inherited from OCSP_OBJ
OCSP_OBJ::$global_currentUser
OCSP_OBJ::$global_defaultDBObj_read
OCSP_OBJ::$global_defaultDBObj_write
clears the FieldClassDesc cache
sets the old style $GLOBALS['OCSP']['DBMS_FIELDDESC']
returns the form object with FRM_ID is $aId
returns the form object with FRM_NAME= $aName
gets an html option list with all possible forms for $aTable
returns the field class description for a field
returns all field class descriptions
loads the field Desc from File cache and sets self::$dbmsFieldClassDesc
requires the a field class src file
loads field definition from the db and caches to a file
adds a new block to the form and returns the block
adds a new block to the form and returns the block
adds a pass-through field
adds a table to the form
return if the form can be changed on an relaod
changes the class of a field object
clears all errors
link a block from an other form
creates the field column in the database
loads the right settings from T_DBMS_FORMRIGHTS
NOTE rights are only checked if a row is found in T_DBMS_FORMRIGHTS
returns if the current user is allowed to open the form readonly
NOTE rights are only checked if a row is found in T_DBMS_FORMRIGHTS
returns if the current user is allowed to open the form readonly
NOTE rights are only checked if a row is found in T_DBMS_FORMRIGHTS
returns if the current user is allowed to open the form readonly
NOTE rights are only checked if a row is found in T_DBMS_FORMRIGHTS
returns if the current user is allowed to open the form readonly
NOTE rights are only checked if a row is found in T_DBMS_FORMRIGHTS
returns if the current user can save the form in the current mode
returns if the current user is allowed to open the form readonly
NOTE rights are only checked if a row is found in T_DBMS_FORMRIGHTS
marks a block as deleted (changes FRM_ID to $this->getId() * (-1))
deletes a field NOTE: does not delete the database column of this field NOTE: does not store the form this has to be done outside
deletes a form and all dependencies
foctory a new field object
returns the autoincrement field of $tbl
returns the first block with $blockName as Name
overwrite in child classes if get_class does not fit
alias for $this->getControlObj()
instantiates a new class if $this->myControl not type of $contrClass
NOTE the class must exists or have it's code in __FILE__
returns the post sub array name of the form fields
if $this->myDBObj is NULL a new connection to either the users db or the global database will be establisched
returns an array with all fields having an error
returns the form errors
returns a field object
returns an array of fields
returns form command fields
commands needed in subclasses to validate submitdata this is used in OCSP_FRMCONTR_FORM::getFormCmdFields()
NOTE: only added if form class != OCSP_FORM
returns the html code for list from a query
if $query is empty it is generated with:
NOTE: use getList_SQLFieldLst() in the select statement if you have a LEFT JOIN to get the right fields and values
layout class var used:
returns an array of all primary key's found in the form
the return array has the following structure: array [table][] => &fieldobj
returns the language string
returns a layout field (added into the tag)
list keys:
if $contrClass is not set to "NO" a controll object will be created if none exists ($this->myControl) is empty
if $contrClass is set to "NO" $this->myControl is returned as is without checking that we
returns the number of blocks
returns the number of fields in the form
returns the value of an object variable
returns the pass-through fields array
returns an array with the primary key fields
returns the relaod url
get main commands of the form
used keywords:
returns the include file for the table object class
instantiates a new class if $this->myControl not type of $contrClass
NOTE the class must exists or have it's code in __FILE__
set a field hidden
imports the form from an array NOTE: does not save the form
link a block from an other form
loads the form blocks from the database into $this::myBlocks
returns a new form form the database
returns a new form from the file cache
settings:
register a table for use with the form
unlicke add table the columns are not loaded
removes a table an all table columns from the form
sets a control
NOTE also changes the controll in $this->myView and sets the view in $aControll if $sync is True
alias for setControl
adds an error to this::errors
links a table object with the form
sets a main cmmonad of the form
used keywords:
sets the tableobject class and include from $dataArr and tries to instantiate by calling $this->getMyTblObj
if class is set in $dataArr and it could not be instantiated False is returned else True is returned
stores a form object and all depending objects (blocks and fields) to the database
writes field definition array (T_DBMS_FIELDDESC) to the cache
and populated
writes the object to the file cache
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()
CLASS_SRC_FILE
= __FILE__
(line 62)
FORM_CACHE_DIR
= "form_cache"
(line 67)
FORM_CACHE_FILEEXT
= ".frm.cache"
(line 72)
Inherited from OCSP_OBJ
OCSP_OBJ::CLASS_SRC_FILE
Documentation generated on Thu, 08 Jan 2009 17:45:52 +0100 by phpDocumentor 1.4.0a2