Class DBMS_FIELD_PASSWORD

Description

Class DBMS_FIELD_PASSWORD

  • author: Peter Krebs <p.krebs@lvus.at>
  • copyright: (c) 2002-2005 by LVUS <http://opencsp.lvu.at>
  • todo: editform no search
  • todo: only mysql PASSWORD("...") is supported now add MD5
  • project: Open CSP-Management
  • license: GNU Public License

Located in /db/frmClasses/DBMS_FIELD_PASSWORD.phpclass (line 37)

DBMS_FIELD
   |
   --DBMS_FIELD_PASSWORD
Variable Summary
Method Summary
 array editTbl_getFieldEditArr ([boolean $debug = False])
 void getAssignment ( $aValue,  &$err)
 string getInputTag (mixed $aValue, [string $arrName = "DBVAL"], [string $nameAdd = ""], [ $debug = FALSE])
 void getScreenValue ( $aValue,  $arrName,  $debug)
 string getValue (string $aValue,  &$err, [string $arrName = "DBVAL"], [bool $debug = False], array $err)
 boolean save ()
 string slashedValue (string $aValue,  &$err, array $err, string $arrName, bool $debug)
Variables
boolean $allowCryptInput = FALSE (line 88)
  • var: the user can input the password in encrypted form no changes are made
  • since: pk-06-12-06
mixed $className = "Password" (line 38)
string $classSrcFile = __FILE__ (line 63)

source file of the class

  • since: pk-05-02-16

Redefinition of:
DBMS_FIELD::$classSrcFile
source file of the class
mixed $maxlength = 16 (line 40)

Redefinition of:
DBMS_FIELD::$maxlength
mixed $noMatchErrMsg = "Die beiden Passworteingaben stimmen nicht überein." (line 42)
int $pwdMinSize = 4 (line 48)
  • var: min required size
  • since: pk-05-02-22
int $pwdSizeErrMsg = "Ihr Passwort ist muss mindestens \$*pwdMinSize\$ Zeichen haben" (line 54)
  • since: pk-05-02-22
mixed $size = 16 (line 41)

Redefinition of:
DBMS_FIELD::$size
string $sqlFunction = "PASSWORD" (line 69)
  • var: the sql function to use creating the password
  • since: pk-06-12-06
array $sqlFunctLst = array(
'ASSIS' =>"keine Umwandlung",
'PASSWORD' =>"password('PASSWD')",
'ENCRYPT' =>"encrypt('PASSWD')",
'MD5' =>"md5('PASSWD')",
'OLD_PASSWORD' =>"old_password('PASSWORD')",
)
(line 76)
  • var: a list of available sql functions to use
  • todo: ensure each DB module can deal with it
  • since: pk-06-12-06

Inherited Variables

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::$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::$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::$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::$sortOrder
DBMS_FIELD::$srcVersion
DBMS_FIELD::$tabIndex
DBMS_FIELD::$toolTip
DBMS_FIELD::$toolTipAsTitle
DBMS_FIELD::$trimValue
Methods
editTbl_getFieldEditArr (line 115)

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 without <td></td>)
  5.          [FLDVAL(complete html code without <td></td>)

  • version: pk-08-06-04
  • since: pk-06-09-18
array editTbl_getFieldEditArr ([boolean $debug = False])
  • boolean $debug
getAssignment (line 271)
void getAssignment ( $aValue,  &$err)
  • $aValue
  • &$err
getInputTag (line 160)

returns the html code for a editable formular element

  • since: pk-05-02-18
string getInputTag (mixed $aValue, [string $arrName = "DBVAL"], [string $nameAdd = ""], [ $debug = FALSE])
  • mixed $aValue: the value to set
  • string $arrName
  • string $nameAdd: append something to name like "[VALUE]" for search forms
  • $debug

Redefinition of:
DBMS_FIELD::getInputTag()
returns the html code for a editable formular element
getScreenValue (line 179)
void getScreenValue ( $aValue,  $arrName,  $debug)
  • $aValue
  • $arrName
  • $debug

Redefinition of:
DBMS_FIELD::getScreenValue()
returns the html representation of the field
getValue (line 201)

returns the field value if the two fields matches

NOTE this returns the clear text password you have to encrypt it before saving it to the database

  • version: pk-03-12-13
  • version: pk-05-06-17
  • 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
save (line 134)

saves the form desc

  • version: pk-04-10-12
boolean save ()

Redefinition of:
DBMS_FIELD::save()
save the filed definition form
slashedValue (line 255)

make a database command to store encrypted password

NOTE mySQL only

  • todo: currently mySQL only
string slashedValue (string $aValue,  &$err, array $err, string $arrName, bool $debug)
  • string $aValue: the value
  • array $err: error array
  • string $arrName: name of the global array to access field gloabl ${$arrName}
  • bool $debug
  • &$err

Inherited Methods

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