Class DBMS_FIELD_ORDERNR

Description

Class DBMS_FIELD_ORDERNR

  • author: Peter Krebs <p.krebs@lvus.at>
  • copyright: (c) 2002-2003 by Peter Krebs and Landesverlag Unternehmensservice
  • project: Open CSP-Management
  • license: GNU Public License

Located in /db/frmClasses/DBMS_FIELD_ORDERNR.phpclass (line 29)

DBMS_FIELD
   |
   --DBMS_FIELD_INT
      |
      --DBMS_FIELD_ORDERNR
Variable Summary
Method Summary
 void editTblForm ([boolean $showSize = FALSE], [boolean $showUnit = TRUE], [boolean $showNull = TRUE])
 array editTbl_getFieldEditArr ([boolean $debug = FALSE])
 string getDownLink ([int $aValue = NULL], [bool $debug = FALSE])
 string getFieldTag (int $mode, [mixed $aValue = NULL], [boolean $debug = FALSE])
 string getListLink (mixed $aValue, [string $arrName = "DBVAL"])
 string getMoveToLink ([int $aValue = NULL], [bool $debug = FALSE])
 int getNewOrderNr (string $arrName, [bool $debug = FALSE])
 string getUpLink ([int $aValue = NULL], [bool $debug = FALSE])
 string getValue (string $aValue,  &$err, [string $arrName = "DBVAL"], [bool $debug = FALSE], array $err)
 boolean lstLinksDisabled ()
 boolean save ()
 string slashedValue (string $aValue,  &$err, [string $arrName = "DBVAL"], [bool $debug = FALSE], array $err)
Variables
mixed $className = "OrderNumber" (line 30)

Redefinition of:
DBMS_FIELD_INT::$className
string $classSrcFile = __FILE__ (line 68)

source file of the class

  • since: pk-05-01-20

Redefinition of:
DBMS_FIELD_INT::$classSrcFile
source file of the class
string $downArgTmpl = "" (line 48)
  • since: pk-04-12-21
mixed $lstDisableLinks = TRUE (line 75)

do not link with edit in lists

  • since: pk-06-01-30

Redefinition of:
DBMS_FIELD::$lstDisableLinks
string $moveToArgTmpl = "" (line 60)
  • since: pk-04-12-21
string $orderKeyFlds = "" (line 35)
  • var: a comma seperated list of fields to add in the where claus of getNewOrderNr
bool $showArrows = FALSE (line 41)
  • since: pk-04-05-25
string $upArgTmpl = "" (line 54)
  • since: pk-04-12-21

Inherited Variables

Inherited from DBMS_FIELD_INT

DBMS_FIELD_INT::$defaultValue
DBMS_FIELD_INT::$hideUnitInLst
DBMS_FIELD_INT::$inputAdd
DBMS_FIELD_INT::$javaCheck
DBMS_FIELD_INT::$null2zero
DBMS_FIELD_INT::$unit

Inherited from DBMS_FIELD

DBMS_FIELD::$addTag
DBMS_FIELD::$ajaxDebug
DBMS_FIELD::$ajaxNotifyLst
DBMS_FIELD::$allowNull
DBMS_FIELD::$dbDesc
DBMS_FIELD::$enableCopy
DBMS_FIELD::$enableEdit
DBMS_FIELD::$enableEditIfEmpty
DBMS_FIELD::$enableNew
DBMS_FIELD::$errMsg
DBMS_FIELD::$exportCSV
DBMS_FIELD::$extConfOptions
DBMS_FIELD::$extJSxType
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::$isHidden
DBMS_FIELD::$isSearchable
DBMS_FIELD::$js_check
DBMS_FIELD::$label
DBMS_FIELD::$labelcol_hide
DBMS_FIELD::$labeltd_add
DBMS_FIELD::$lstColSpan
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
editTblForm (line 153)

echos the filed definition form

  • deprecated: since pk-06-07-22
void editTblForm ([boolean $showSize = FALSE], [boolean $showUnit = TRUE], [boolean $showNull = TRUE])
  • boolean $showSize: obsulet
  • boolean $showUnit: obsulet
  • boolean $showNull: obsulet

Redefinition of:
DBMS_FIELD_INT::editTblForm()
echos the filed definition form
editTbl_getFieldEditArr (line 107)

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-22
array editTbl_getFieldEditArr ([boolean $debug = FALSE])
  • boolean $debug

Redefinition of:
DBMS_FIELD_INT::editTbl_getFieldEditArr()
returns an array of field to bie shown in the edit form by using editTbl_echoForm
getDownLink (line 206)

returns the htmlcode for the move down button

  • since: pk-05-01-03
string getDownLink ([int $aValue = NULL], [bool $debug = FALSE])
  • int $aValue
  • bool $debug
getFieldTag (line 329)

returns the html code for the field value input / show adds $this->myName to ${$this->myDataArrName}['_DBMS_FIELDS']

  • version: pk-06-01-30
  • since: pk-05-01-03
string getFieldTag (int $mode, [mixed $aValue = NULL], [boolean $debug = FALSE])
  • int $mode
  • mixed $aValue
  • boolean $debug

Redefinition of:
DBMS_FIELD::getFieldTag()
returns the html code for the field value input / show adds $this->myName to ${$this->myDataArrName}['_DBMS_FIELDS']
getListLink (line 360)

returns a empty link to not link the field

  • return: empty if no link is to show a <a href=...url..> if the field is linked
  • version: pk-04-05-26
string getListLink (mixed $aValue, [string $arrName = "DBVAL"])
  • mixed $aValue: value of the db field
  • string $arrName: name of the GLOBAL array holding the row values

Redefinition of:
DBMS_FIELD::getListLink()
getMoveToLink (line 292)

returns the htmlcode for the "move to position" only if $this->moveToArgTmpl is not empty otherwise $aValue is returned

  • since: pk-06-02-23
string getMoveToLink ([int $aValue = NULL], [bool $debug = FALSE])
  • int $aValue
  • bool $debug
getNewOrderNr (line 386)

selects a new order number from the database

NOTE: this is not save because no locking happens

uses $arrName as global variable to get the key fields if it is not set $_GET is tried also

  • version: pk-03-12-13
int getNewOrderNr (string $arrName, [bool $debug = FALSE])
  • string $arrName
  • bool $debug
getUpLink (line 260)

returns the htmlcode for the move up button only if $this->upArgTmpl is not empty

  • since: pk-05-01-03
string getUpLink ([int $aValue = NULL], [bool $debug = FALSE])
  • int $aValue
  • bool $debug
getValue (line 434)

checks if aValue is set.

if not a new order number is created if aValue == $this->defaultValue a new order number is created (pk-03-12-13)

  • version: pk-03-12-13
  • since: pk-03-12-13
string getValue (string $aValue,  &$err, [string $arrName = "DBVAL"], [bool $debug = FALSE], array $err)
  • string $aValue: the value
  • array $err: error array
  • string $arrName: name of the array to access fieldsarray gloabl ${$arrName}
  • bool $debug
  • &$err

Redefinition of:
DBMS_FIELD_INT::getValue()
returns the field value
lstLinksDisabled (line 187)

returns if the list cell can be linked with the ['EDIT'] link

  • since: pk-06-01-30
boolean lstLinksDisabled ()

Redefinition of:
DBMS_FIELD::lstLinksDisabled()
returns if the list cell can be linked with the ['EDIT'] link
save (line 165)

save the filed definition form

boolean save ()

Redefinition of:
DBMS_FIELD_INT::save()
saves the form desc
slashedValue (line 457)

add slashes to the value from getValue to add it to a sql command

  • version: pk-03-12-13
string slashedValue (string $aValue,  &$err, [string $arrName = "DBVAL"], [bool $debug = FALSE], array $err)
  • string $aValue: the value
  • array $err: error array
  • string $arrName: name of the global array to access field gloabl ${$arrName}
  • bool $debug
  • &$err

Redefinition of:
DBMS_FIELD_INT::slashedValue()
add slashes to the value to add it to a sql command

Inherited Methods

Inherited From DBMS_FIELD_INT

 DBMS_FIELD_INT::editTblForm()
 DBMS_FIELD_INT::editTbl_getFieldEditArr()
 DBMS_FIELD_INT::getInputTag()
 DBMS_FIELD_INT::getListValue()
 DBMS_FIELD_INT::getScreenValue()
 DBMS_FIELD_INT::getSearchCompTypes()
 DBMS_FIELD_INT::getValue()
 DBMS_FIELD_INT::save()
 DBMS_FIELD_INT::searchWhere()
 DBMS_FIELD_INT::slashedValue()
 DBMS_FIELD_INT::writeSearchCompTypes()

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:30 +0100 by phpDocumentor 1.4.0a2