Class DBMS_FIELD_STATUS_CONFARR_SELECT

Description

Class DBMS_FIELD_STATUS_CONFARR_SELECT

  • author: Peter Krebs <pitlinz@users.sourceforge.net>
  • version: pk-05-08-02
  • version: $Id:$
  • copyright: (c) 2002-2005 by LVUS <http://www.lvus.at>
  • todo: only checked when form is shown no check is done for this::slashedValue() and this::getValue() needs a major change in the dbms function calls
  • since: pk-03-12-16
  • project: Open CSP-Management
  • license: GNU Public License

Located in /db/frmClasses/DBMS_FIELD_STATUS_CONFARR_SELECT.phpclass (line 38)

DBMS_FIELD
   |
   --DBMS_FIELD_SELECTLIST
      |
      --DBMS_FIELD_GLOBALARRSELECTLIST
         |
         --DBMS_FIELD_STATUS_CONFARR_SELECT
Variable Summary
 string $className
 string $classSrcFile
 string $grpKey
 string $iconKey
Method Summary
 boolean check_globalArrGroup (array $globalValArr, [boolean $debug = FALSE])
 boolean check_globalArrReqValue (array $globalValArr, [string $arrName = "DBVAL"], [boolean $debug = FALSE])
 array editTbl_getFieldEditArr ([boolean $debug = FALSE])
 string getOptionList (array $aValArr, [bool $addNULL = FALSE], [bool $debug = FALSE])
 string getScreenValue (mixed $aValue, [string $arrName = "DBVAL"], [boolean $debug = FALSE])
 string getTableValSelect ( &$aValue, [string $arrName = ""], [string $selTagAdd = ""], [string $whereCond = ""], [ $nullLabel = ""], [ $debug = FALSE], mixed $aValue)
 boolean; globalArrIsToCheck (int $mode,  $debug)
 boolean save ()
 array setMyValues ([string $arrName = "DBVAL"], [bool $debug = FALSE], [ $mode = FRM_MODE_EDIT])
Variables
string $className = "SelectGlobalStatusArr" (line 50)

Redefinition of:
DBMS_FIELD_GLOBALARRSELECTLIST::$className
string $classSrcFile = __FILE__ (line 45)

source file of the class

  • since: pk-06-07-24

Redefinition of:
DBMS_FIELD_GLOBALARRSELECTLIST::$classSrcFile
source file of the class
string $grpKey = "GROUP" (line 59)
  • var: index to look for the group
string $iconKey = "ICON" (line 63)
  • var: index to look for the icon
string $requireValueKey = "REQVAL" (line 67)
  • var: index to look for the required value

Inherited Variables

Inherited from DBMS_FIELD_GLOBALARRSELECTLIST

DBMS_FIELD_GLOBALARRSELECTLIST::$allowNullSelect
DBMS_FIELD_GLOBALARRSELECTLIST::$arrName
DBMS_FIELD_GLOBALARRSELECTLIST::$lstKey
DBMS_FIELD_GLOBALARRSELECTLIST::$module
DBMS_FIELD_GLOBALARRSELECTLIST::$subKey
DBMS_FIELD_GLOBALARRSELECTLIST::$valueIsKey

Inherited from DBMS_FIELD_SELECTLIST

DBMS_FIELD_SELECTLIST::$ajax_onChange_FuncName
DBMS_FIELD_SELECTLIST::$extJSxType
DBMS_FIELD_SELECTLIST::$lstValueIsHtml
DBMS_FIELD_SELECTLIST::$multiselect
DBMS_FIELD_SELECTLIST::$mySeperator
DBMS_FIELD_SELECTLIST::$myValues
DBMS_FIELD_SELECTLIST::$notInLstValues
DBMS_FIELD_SELECTLIST::$nullLabel
DBMS_FIELD_SELECTLIST::$nullToZero
DBMS_FIELD_SELECTLIST::$reloadFormOnChange
DBMS_FIELD_SELECTLIST::$selectAddTag
DBMS_FIELD_SELECTLIST::$selectsize
DBMS_FIELD_SELECTLIST::$showAsCheckRadio
DBMS_FIELD_SELECTLIST::$showNullOption
DBMS_FIELD_SELECTLIST::$showValuesInList
DBMS_FIELD_SELECTLIST::$static_fixedSelSize

Inherited from DBMS_FIELD

DBMS_FIELD::$addTag
DBMS_FIELD::$ajaxDebug
DBMS_FIELD::$ajaxNotifyLst
DBMS_FIELD::$allowNull
DBMS_FIELD::$dbDesc
DBMS_FIELD::$defaultValue
DBMS_FIELD::$enableCopy
DBMS_FIELD::$enableEdit
DBMS_FIELD::$enableEditIfEmpty
DBMS_FIELD::$enableNew
DBMS_FIELD::$errMsg
DBMS_FIELD::$exportCSV
DBMS_FIELD::$extConfOptions
DBMS_FIELD::$fieldtd_add
DBMS_FIELD::$fldDbgGetValue
DBMS_FIELD::$fldDebug
DBMS_FIELD::$hideAddTag_ro
DBMS_FIELD::$hideCopy
DBMS_FIELD::$hideEdit
DBMS_FIELD::$hideNew
DBMS_FIELD::$hideReadOnly
DBMS_FIELD::$inputAdd
DBMS_FIELD::$isHidden
DBMS_FIELD::$isSearchable
DBMS_FIELD::$js_check
DBMS_FIELD::$label
DBMS_FIELD::$labelcol_hide
DBMS_FIELD::$labeltd_add
DBMS_FIELD::$lstColSpan
DBMS_FIELD::$lstDisableLinks
DBMS_FIELD::$lstLabel
DBMS_FIELD::$lstLink
DBMS_FIELD::$lstTDAdd
DBMS_FIELD::$lstWidth
DBMS_FIELD::$maxlength
DBMS_FIELD::$myAjaxObj
DBMS_FIELD::$myBlock
DBMS_FIELD::$myBlockId
DBMS_FIELD::$myControll
DBMS_FIELD::$myCurrentMode
DBMS_FIELD::$myDataArrName
DBMS_FIELD::$myDeleteFlag
DBMS_FIELD::$myDesc
DBMS_FIELD::$myDOMId
DBMS_FIELD::$myForm
DBMS_FIELD::$myFrmId
DBMS_FIELD::$myGrpKey
DBMS_FIELD::$myHelpUrl
DBMS_FIELD::$myModuleKey
DBMS_FIELD::$myName
DBMS_FIELD::$myTable
DBMS_FIELD::$myTableAlias
DBMS_FIELD::$myView
DBMS_FIELD::$nullErrMsg
DBMS_FIELD::$ps_defaultDataArrName
DBMS_FIELD::$regexcheck_pattern
DBMS_FIELD::$regexErrMsg
DBMS_FIELD::$searchGroup_allowAll
DBMS_FIELD::$showGroup
DBMS_FIELD::$showInList
DBMS_FIELD::$showQasHidden
DBMS_FIELD::$showQuery
DBMS_FIELD::$size
DBMS_FIELD::$sortOrder
DBMS_FIELD::$srcVersion
DBMS_FIELD::$tabIndex
DBMS_FIELD::$toolTip
DBMS_FIELD::$toolTipAsTitle
DBMS_FIELD::$trimValue
Methods
check_globalArrGroup (line 175)

returns if the user is member of the grpKey groups

  • version: pk-06-07-24
  • since: pk-05-08-02
boolean check_globalArrGroup (array $globalValArr, [boolean $debug = FALSE])
  • array $globalValArr: the subarray in the global array
  • boolean $debug
check_globalArrReqValue (line 212)

returns if the global array $arrName as the required value

  • version: pk-06-07-24
  • since: pk-05-08-02
boolean check_globalArrReqValue (array $globalValArr, [string $arrName = "DBVAL"], [boolean $debug = FALSE])
  • array $globalValArr
  • string $arrName
  • boolean $debug
editTbl_getFieldEditArr (line 94)

returns an array of field to bie shown in the edit form by using editTbl_echoForm

the array is in the form:

  1.  [_sectionName_]
  2.       [TITLE-> string
  3.       [_rowName_]
  4.          [FLDLAB]  (complete html code with <td></td>)
  5.          [FLDVAL(complete html code with <td></td>)

  • since: pk-06-07-24
array editTbl_getFieldEditArr ([boolean $debug = FALSE])
  • boolean $debug

Redefinition of:
DBMS_FIELD_GLOBALARRSELECTLIST::editTbl_getFieldEditArr()
returns an array of field to bie shown in the edit form by using editTbl_echoForm
getOptionList (line 372)

returns a string with the options if

calls setMyValues to be sure $this->myValues is set correkt

  • since: pk-05-02-17
string getOptionList (array $aValArr, [bool $addNULL = FALSE], [bool $debug = FALSE])
  • array $aValArr: array of selected values
  • bool $addNULL: add the null option (for search)
  • bool $debug

Redefinition of:
DBMS_FIELD_SELECTLIST::getOptionList()
returns a string with the options
getScreenValue (line 418)

returns the html code for the readonly field

  • version: pk-04-09-08
  • version: pk-05-08-02 bugifx
string getScreenValue (mixed $aValue, [string $arrName = "DBVAL"], [boolean $debug = FALSE])
  • mixed $aValue
  • string $arrName
  • boolean $debug

Redefinition of:
DBMS_FIELD_GLOBALARRSELECTLIST::getScreenValue()
returns the html representation of the field
getTableValSelect (line 445)

returns a html select with all values (distinct) where $aValue is selected

NOTE only works on database fields

  • todo: object value tables
  • since: pk-05-10-20
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)
  • &$aValue
  • $nullLabel
  • $debug
globalArrIsToCheck (line 147)

returns if we have to check the array for group and required value

  • since: pk-05-08-02
boolean; globalArrIsToCheck (int $mode,  $debug)
  • int $mode
  • $debug
save (line 126)
  • version: pk-05-08-02
boolean save ()

Redefinition of:
DBMS_FIELD_GLOBALARRSELECTLIST::save()
save the field definiton from $_POST
setMyValues (line 292)

returns an array of allowed values

if mode is FRM_MODE_EDIT, FRM_MODE_NEW or FRM_MODE_HIDDEN for eache array ellement is checkt if the curent user ($GLOBALS['USER']) is member of the group (ID specified by $this::grpKey)

  • version: pk-05-08-03
  • example: example not found
array setMyValues ([string $arrName = "DBVAL"], [bool $debug = FALSE], [ $mode = FRM_MODE_EDIT])
  • string $arrName
  • bool $debug
  • $mode

Redefinition of:
DBMS_FIELD_GLOBALARRSELECTLIST::setMyValues()
sets $this->myValues

Inherited Methods

Inherited From DBMS_FIELD_GLOBALARRSELECTLIST

 DBMS_FIELD_GLOBALARRSELECTLIST::editTblForm()
 DBMS_FIELD_GLOBALARRSELECTLIST::editTbl_getFieldEditArr()
 DBMS_FIELD_GLOBALARRSELECTLIST::getGlobalValArr()
 DBMS_FIELD_GLOBALARRSELECTLIST::getListValue()
 DBMS_FIELD_GLOBALARRSELECTLIST::getScreenValue()
 DBMS_FIELD_GLOBALARRSELECTLIST::save()
 DBMS_FIELD_GLOBALARRSELECTLIST::setMyValues()

Inherited From DBMS_FIELD_SELECTLIST

 DBMS_FIELD_SELECTLIST::editTabl_save()
 DBMS_FIELD_SELECTLIST::editTbl_getFieldEditArr()
 DBMS_FIELD_SELECTLIST::getArrayFromString()
 DBMS_FIELD_SELECTLIST::getCheckRadio()
 DBMS_FIELD_SELECTLIST::getExtJSConfigOptions()
 DBMS_FIELD_SELECTLIST::getFormFieldSelect()
 DBMS_FIELD_SELECTLIST::getFormFieldSelectAttributes()
 DBMS_FIELD_SELECTLIST::getInputName()
 DBMS_FIELD_SELECTLIST::getInputTag()
 DBMS_FIELD_SELECTLIST::getListValue()
 DBMS_FIELD_SELECTLIST::getOnChangedTag()
 DBMS_FIELD_SELECTLIST::getOptionList()
 DBMS_FIELD_SELECTLIST::getReloadButton()
 DBMS_FIELD_SELECTLIST::getScreenValue()
 DBMS_FIELD_SELECTLIST::getSearchCompTypes()
 DBMS_FIELD_SELECTLIST::getSearchInputTag()
 DBMS_FIELD_SELECTLIST::getSelectTag()
 DBMS_FIELD_SELECTLIST::getValue()
 DBMS_FIELD_SELECTLIST::jOCSP_getAdditonalFieldObjElems()
 DBMS_FIELD_SELECTLIST::jOCSP_getReloadScript()
 DBMS_FIELD_SELECTLIST::jOCSP_getRequiredModules()
 DBMS_FIELD_SELECTLIST::setMyValues()
 DBMS_FIELD_SELECTLIST::slashedValue()

Inherited From DBMS_FIELD

 DBMS_FIELD::DBMS_FIELD()
 DBMS_FIELD::allowNull()
 DBMS_FIELD::check()
 DBMS_FIELD::editLst_getAdminLstStyle()
 DBMS_FIELD::editLst_getClassSelectOptions()
 DBMS_FIELD::editTblForm()
 DBMS_FIELD::editTbl_echoForm()
 DBMS_FIELD::editTbl_getForm()
 DBMS_FIELD::fldTypeIsUseable()
 DBMS_FIELD::getAddTag()
 DBMS_FIELD::getBlockId()
 DBMS_FIELD::getDataArrName()
 DBMS_FIELD::getDBColName()
 DBMS_FIELD::getDBColType()
 DBMS_FIELD::getDbDefault()
 DBMS_FIELD::getdbDesc()
 DBMS_FIELD::getDebugMode()
 DBMS_FIELD::getDefaultValue()
 DBMS_FIELD::getFieldRow()
 DBMS_FIELD::getFieldRowCols()
 DBMS_FIELD::getFieldTag()
 DBMS_FIELD::getFrmId()
 DBMS_FIELD::getInputTag()
 DBMS_FIELD::getKey()
 DBMS_FIELD::getLabel()
 DBMS_FIELD::getLabelColTag()
 DBMS_FIELD::getListLink()
 DBMS_FIELD::getListLinkArr()
 DBMS_FIELD::getListValue()
 DBMS_FIELD::getLstColSpan()
 DBMS_FIELD::getLstLabel()
 DBMS_FIELD::getLstWidth()
 DBMS_FIELD::getModuleKey()
 DBMS_FIELD::getMyBlock()
 DBMS_FIELD::getMyForm()
 DBMS_FIELD::getMyFormName()
 DBMS_FIELD::getName()
 DBMS_FIELD::getObjectData()
 DBMS_FIELD::getObjectVars()
 DBMS_FIELD::getOrderNr()
 DBMS_FIELD::getScreenValue()
 DBMS_FIELD::getSetting()
 DBMS_FIELD::getShowGroup()
 DBMS_FIELD::getSize()
 DBMS_FIELD::getSourceFile()
 DBMS_FIELD::getTabIndex()
 DBMS_FIELD::getTable()
 DBMS_FIELD::getTblAlias()
 DBMS_FIELD::getToolTip()
 DBMS_FIELD::getType()
 DBMS_FIELD::getValId()
 DBMS_FIELD::get_lstTDAdd()
 DBMS_FIELD::incOrderNr()
 DBMS_FIELD::isAutoInc()
 DBMS_FIELD::isEnabled()
 DBMS_FIELD::isHidden()
 DBMS_FIELD::isLayoutFld()
 DBMS_FIELD::isMarkedDeleted()
 DBMS_FIELD::isPrimaryKey()
 DBMS_FIELD::isReadOnlyShown()
 DBMS_FIELD::isSearchable()
 DBMS_FIELD::isToShow()
 DBMS_FIELD::labelIsHidden()
 DBMS_FIELD::lstLinksDisabled()
 DBMS_FIELD::markDeleted()
 DBMS_FIELD::markUnDeleted()
 DBMS_FIELD::save()
 DBMS_FIELD::setDataArrName()
 DBMS_FIELD::setdbDesc()
 DBMS_FIELD::setFieldVar()
 DBMS_FIELD::setFrmId()
 DBMS_FIELD::setHidden()
 DBMS_FIELD::setLabel()
 DBMS_FIELD::setModuleKey()
 DBMS_FIELD::setMyBlock()
 DBMS_FIELD::setMyForm()
 DBMS_FIELD::setName()
 DBMS_FIELD::setObjectVars()
 DBMS_FIELD::setObjVarsFrom()
 DBMS_FIELD::setOrderNr()
 DBMS_FIELD::setShown()
 DBMS_FIELD::setTable()
 DBMS_FIELD::setTblAlias()
 DBMS_FIELD::showInList()

Documentation generated on Thu, 08 Jan 2009 17:42:57 +0100 by phpDocumentor 1.4.0a2