Class DBMS_FIELD_IMAGE

Description

Class DBMS_FIELD_IMAGE

  • author: Peter Krebs <pitlinz@users.sourceforge.net>
  • version: $Id: DBMS_FIELD_IMAGE.phpclass,v 1.19 2008/11/11 07:04:42 pitlinz Exp $
  • version: pk-07-01-15
  • version: pk-07-09-12 changed parent class from DBMS_FIELD to DBMS_FIELD_FILESELECTLIST
  • project: Open CSP-Management
  • license: GNU Public License

Located in /db/frmClasses/DBMS_FIELD_IMAGE.phpclass (line 32)

DBMS_FIELD
   |
   --DBMS_FIELD_SELECTLIST
      |
      --DBMS_FIELD_FILESELECTLIST
         |
         --DBMS_FIELD_IMAGE
Direct descendents
Class Description
 class DBMS_FIELD_IMAGEFILEICON Class DBMS_FIELD_IMAGEFILEICON
 class DBMS_FIELD_IMAGETAG Class DBMS_FIELD_IMAGETAG
Variable Summary
Method Summary
 void checkSrc ( $aValue)
 array editTbl_getFieldEditArr ([boolean $debug = FALSE])
 mixed getHtmlTag (mixed $aValue, [string $arrName = "DBVAL"], [bool $debug = FALSE])
 string getImgSrc ( $aValue, [boolean $debug = False], string $aImg, int $mode)
 string getInputImgPreview (string $aValue, [boolean $debug = False])
 void getInputTag ( $aValue, [ $arrName = "DBVAL"], [ $debug = FALSE])
 string getListValue ([string $aValue = NULL], [string $arrName = "DBVAL"], [boolean $debug = FALSE])
 int getMaxHeight ()
 int getMaxWidth ()
 boolean getResizeOnUpload ()
 string getScreenValue ([string $aValue = NULL], [string $arrName = "DBVAL"], [boolean $debug = FALSE])
 array jOCSP_getAdditonalFieldObjElems ([boolean $debug = False])
 string jOCSP_getRequiredModules ([boolean $debug = False])
 void jOCSP_openBrowser ( $request, [ $debug = False])
 string jOCSP_setImage (array $request, [boolean $debug = False])
 string jOCSP_uploadFile (array $request, boolean $debug)
 bool save ([bool $debug = FALSE])
 void setObjectVars (array $varArr, [boolean $debug = FALSE])
 string uploadFile (array $uplFile, [string $path = ""])
Variables
string $classSrcFile = __FILE__ (line 44)

source file of the class

  • since: pk-04-10-05

Redefinition of:
DBMS_FIELD_FILESELECTLIST::$classSrcFile
source file of the class

Redefined in descendants as:
boolean $hideInputField = FALSE (line 73)
  • since: pk-04-09-23
  • access: protected
int $listMaxHeight = "30" (line 67)
  • access: protected
int $listMaxWidth = "40" (line 63)
  • access: protected
int $maxHeight = "768" (line 55)
  • access: protected
int $maxWidth = "1024" (line 51)
  • access: protected
boolean $resizeOnUpload = FALSE (line 59)
  • access: protected

Inherited Variables

Inherited from DBMS_FIELD_FILESELECTLIST

DBMS_FIELD_FILESELECTLIST::$allow_cd
DBMS_FIELD_FILESELECTLIST::$allow_mkdir
DBMS_FIELD_FILESELECTLIST::$defaultDir
DBMS_FIELD_FILESELECTLIST::$extfilter
DBMS_FIELD_FILESELECTLIST::$maxSize
DBMS_FIELD_FILESELECTLIST::$rootDir
DBMS_FIELD_FILESELECTLIST::$useDocRoot

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
checkSrc (line 455)
void checkSrc ( $aValue)
  • $aValue

Redefined in descendants as:
editTbl_getFieldEditArr (line 265)

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

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

Redefinition of:
DBMS_FIELD_FILESELECTLIST::editTbl_getFieldEditArr()
returns an array of field to bie shown in the edit form by using editTbl_echoForm
getHtmlTag (line 528)

gets a htmltag for the value for images only the src url is returned as this is often used with: <img src="$*img$">

  • version: pk-06-12-06 check for http?: in the url
  • since: pk-04-07-29
mixed getHtmlTag (mixed $aValue, [string $arrName = "DBVAL"], [bool $debug = FALSE])
  • mixed $aValue
  • string $arrName
  • bool $debug

Redefined in descendants as:
getImgSrc (line 333)

returns the html <img src= value >

  • version: pk-06-10-06 // different db-versions one with $rootDir and one without
  • version: pk-06-01-10
  • version: pk-04-12-27
  • version: pk-06-12-06 // check for html urls
  • version: pk-07-02-14 // SEC_REQ['PUBLIC']
  • version: $Id: DBMS_FIELD_IMAGE.phpclass,v 1.19 2008/11/11 07:04:42 pitlinz Exp $
  • version: pk-07-09-12 // compleate rewrite
  • since: pk-04-09-24
  • requires: pcf_md5.phpinc
string getImgSrc ( $aValue, [boolean $debug = False], string $aImg, int $mode)
  • string $aImg
  • boolean $debug
  • int $mode: since pk-06-08-15
  • $aValue
getInputImgPreview (line 354)

returns the img preview tag with link to the image browser

  • return: (html)
string getInputImgPreview (string $aValue, [boolean $debug = False])
  • string $aValue
  • boolean $debug
getInputTag (line 414)
void getInputTag ( $aValue, [ $arrName = "DBVAL"], [ $debug = FALSE])
  • $aValue
  • $arrName
  • $debug

Redefinition of:
DBMS_FIELD_SELECTLIST::getInputTag()
returns the html code

Redefined in descendants as:
getListValue (line 499)

returns the list representation here an img tag is returned

  • since: pk-06-08-09
string getListValue ([string $aValue = NULL], [string $arrName = "DBVAL"], [boolean $debug = FALSE])
  • string $aValue
  • string $arrName
  • boolean $debug

Redefinition of:
DBMS_FIELD_SELECTLIST::getListValue()
returns the html code to show the value(s) in a list (table column)
getMaxHeight (line 142)

returns the maxHeight

int getMaxHeight ()
getMaxWidth (line 133)

returns the maxWidth

int getMaxWidth ()
getResizeOnUpload (line 124)

returns if the upload is to resize

boolean getResizeOnUpload ()
getScreenValue (line 473)

returns the screen representation here a img tag is returned

  • version: pk-04-09-24
string getScreenValue ([string $aValue = NULL], [string $arrName = "DBVAL"], [boolean $debug = FALSE])
  • string $aValue
  • string $arrName
  • boolean $debug

Redefinition of:
DBMS_FIELD_SELECTLIST::getScreenValue()
returns the html code for the readonly field

Redefined in descendants as:
jOCSP_getAdditonalFieldObjElems (line 590)

returns additional object elements of the field object

array definition: [elemName] = value

NOTE: do not js_escapte value this is done when building the json object

  • since: pk-08-02-06
  • access: protected
array jOCSP_getAdditonalFieldObjElems ([boolean $debug = False])
  • boolean $debug

Redefinition of:
DBMS_FIELD_SELECTLIST::jOCSP_getAdditonalFieldObjElems()
returns additional object elements of the field object
jOCSP_getRequiredModules (line 562)

returns an array of jOCSP/jQuery Modules which are required

$arr_ret[]="script url";

  • version: pk-08-06-02
  • access: public
string jOCSP_getRequiredModules ([boolean $debug = False])
  • boolean $debug

Redefinition of:
DBMS_FIELD_SELECTLIST::jOCSP_getRequiredModules()
returns an array of jOCSP/jQuery Modules which are required
jOCSP_openBrowser (line 603)
  • access: public
void jOCSP_openBrowser ( $request, [ $debug = False])
  • $request
  • $debug
jOCSP_setImage (line 673)

sets a file path

  • return: (js)
  • since: pk-08-06-09
  • access: public
string jOCSP_setImage (array $request, [boolean $debug = False])
  • array $request
  • boolean $debug
jOCSP_uploadFile (line 693)

uploads a file

  • return: (js)
  • access: public
string jOCSP_uploadFile (array $request, boolean $debug)
  • array $request
  • boolean $debug
save (line 291)

save the filed definition form

  • return: return TRUE
  • version: pk-06-08-15
bool save ([bool $debug = FALSE])
  • bool $debug

Redefinition of:
DBMS_FIELD_FILESELECTLIST::save()
saves the fld definition

Redefined in descendants as:
setObjectVars (line 87)

convert old object vars to DBMS_FIELD_DBLOOKUPSELECTLIST and then calls the parent method

void setObjectVars (array $varArr, [boolean $debug = FALSE])
  • array $varArr
  • boolean $debug

Redefinition of:
DBMS_FIELD::setObjectVars()
sets the objectvars return value is used to raise an error by default True is returned at the moment
uploadFile (line 155)

returns the value of the uploaded file

  • return: value to set or Null on error
string uploadFile (array $uplFile, [string $path = ""])
  • array $uplFile: ($_FILE[fld])
  • string $path

Inherited Methods

Inherited From DBMS_FIELD_FILESELECTLIST

 DBMS_FIELD_FILESELECTLIST::editTbl_getFieldEditArr()
 DBMS_FIELD_FILESELECTLIST::getBasePath()
 DBMS_FIELD_FILESELECTLIST::getDefaultPath()
 DBMS_FIELD_FILESELECTLIST::getDirFromValue()
 DBMS_FIELD_FILESELECTLIST::getDirSelectValues()
 DBMS_FIELD_FILESELECTLIST::getDirSelNameId()
 DBMS_FIELD_FILESELECTLIST::getFilePath()
 DBMS_FIELD_FILESELECTLIST::getMaxFileSizeBytes()
 DBMS_FIELD_FILESELECTLIST::getRootDir()
 DBMS_FIELD_FILESELECTLIST::getRootPath()
 DBMS_FIELD_FILESELECTLIST::save()
 DBMS_FIELD_FILESELECTLIST::setMyValues()
 DBMS_FIELD_FILESELECTLIST::setRootDir()

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