Class MED_IMAGE

Description

Class MED_IMAGE

Handels medias which consists only of one single file

  • author: Peter Krebs (pk) <p.krebs@lvus.at>
  • version: pk-05-11-17
  • version: pk-04-01-02
  • version: pk-08-01-31
  • version: $Id: DBMS_TABLEOBJ.phpclass,v 1.60 2008/12/17 16:28:52 peterkrebs Exp $
  • copyright: (c) 2002-2003 by Peter Krebs and Landesverlag Unternehmensservice
  • since: pk-03-12-18
  • project: Open CSP-Management
  • license: GNU Public License

Located in /media/MED_IMAGE.phpclass (line 35)

OCSP_OBJ
   |
   --DBMS_TABLEOBJ
      |
      --MED_TABLEOBJ
         |
         --MED_FILE
            |
            --MED_IMAGE
Variable Summary
 $gdInfo $gdInfo
 array $listSize
 myObjVars $myObjVars
 boolean $serverresize
 array $showSize
Method Summary
 DBMS_FORM &dbGetForm (int $mode, [string $frmName = ""])
 array getDBVAL ([bool $setFIELDS = FALSE], [bool $debug = FALSE])
 string getHTMLListTag ([array $argArr = NULL], [boolean $debug = FALSE])
 void getimagesizeArr ()
 int getListHeight ()
 int getListWidth ()
 void setFile (string $aName, [bool $isTmp = FALSE], [bool $debug = FALSE])
 bool setFORMPOST ( &$frmObj,  $dbval, [bool $debug = FALSE], DBMS_FORM $frmObj, array $dbVal)
Variables
$gdInfo $gdInfo = array() (line 46)

return array of getimagesize

array $listSize = array('WIDTH'=>-1,'HEIGHT'=>20) (line 55)
mixed $myClassSrcFile = __FILE__ (line 67)
  • staticvar: stirng $myClassSrcFile:
  • since: pk-05-09-13

Redefinition of:
MED_FILE::$myClassSrcFile
myObjVars $myObjVars = array("gdInfo","showSize","listSize","serverresize") (line 40)

array of object variables to store to the db field MEF_OBJVARS

boolean $serverresize = 1 (line 60)
array $showSize = array('WIDTH'=>-1,'HEIGHT'=>-1) (line 51)

Inherited Variables

Inherited from MED_FILE

MED_FILE::$colPrevix
MED_FILE::$myTable

Inherited from MED_TABLEOBJ

MED_TABLEOBJ::$myCategory

Inherited from DBMS_TABLEOBJ

DBMS_TABLEOBJ::$autoIncFld
DBMS_TABLEOBJ::$dbTableDefinitions
DBMS_TABLEOBJ::$frmPostSubOjects
DBMS_TABLEOBJ::$hasObjVals
DBMS_TABLEOBJ::$initTS
DBMS_TABLEOBJ::$myCacheTS
DBMS_TABLEOBJ::$myFields
DBMS_TABLEOBJ::$myKeys
DBMS_TABLEOBJ::$myLinkedTableRows
DBMS_TABLEOBJ::$myMode
DBMS_TABLEOBJ::$myObjVals
DBMS_TABLEOBJ::$myObjValsPopulateTS
DBMS_TABLEOBJ::$objError
DBMS_TABLEOBJ::$objErrorMsg
DBMS_TABLEOBJ::$populateTS
DBMS_TABLEOBJ::$staticClassVars
DBMS_TABLEOBJ::$valChangeTS

Inherited from OCSP_OBJ

OCSP_OBJ::$global_currentUser
OCSP_OBJ::$global_defaultDBObj_read
OCSP_OBJ::$global_defaultDBObj_write
OCSP_OBJ::$myDBObj
Methods
dbGetForm (line 164)

returns a database form

DBMS_FORM &dbGetForm (int $mode, [string $frmName = ""])
  • int $mode: dbms form show mode
  • string $frmName: dbms form name

Redefinition of:
MED_FILE::dbGetForm()
returns a database form
getDBVAL (line 107)

returns a field => value array for dbms

use this in cms and dbms elements to get $DBVAL array

overwrite this and add some special values for objects if needed

  • see: dbms
array getDBVAL ([bool $setFIELDS = FALSE], [bool $debug = FALSE])
  • bool $setFIELDS: if true $ret['_DBMS_FIELDS'] is filled
  • bool $debug: show debug info?
getHTMLListTag (line 233)

gets the html list tag representing the file

  • since: pk-04-08-10
string getHTMLListTag ([array $argArr = NULL], [boolean $debug = FALSE])
  • array $argArr
  • boolean $debug

Redefinition of:
MED_FILE::getHTMLListTag()
gets the html list tag representing the file
getimagesizeArr (line 254)
void getimagesizeArr ()
getListHeight (line 86)
  • since: pk-04-08-10
int getListHeight ()
getListWidth (line 78)
  • since: pk-04-08-10
int getListWidth ()
setFile (line 213)

sets file with attribs

void setFile (string $aName, [bool $isTmp = FALSE], [bool $debug = FALSE])
  • string $aName
  • bool $isTmp
  • bool $debug

Redefinition of:
MED_FILE::setFile()
sets file with attribs
setFORMPOST (line 143)

sets post array with form checks

  • version: pk-03-12-13
bool setFORMPOST ( &$frmObj,  $dbval, [bool $debug = FALSE], DBMS_FORM $frmObj, array $dbVal)
  • DBMS_FORM $frmObj: a formObj as ref
  • array $dbVal: array with data
  • bool $debug
  • &$frmObj
  • $dbval

Redefinition of:
MED_FILE::setFORMPOST()
sets post array with form checks

Inherited Methods

Inherited From MED_FILE

 MED_FILE::MED_FILE()
 MED_FILE::chkObjectClass()
 MED_FILE::createZip()
 MED_FILE::curUserCanOpen()
 MED_FILE::dbDelete()
 MED_FILE::dbGetForm()
 MED_FILE::dbInsert()
 MED_FILE::getDBRow()
 MED_FILE::getDownlaodLink()
 MED_FILE::getFileName()
 MED_FILE::getFilePath()
 MED_FILE::getFileSize()
 MED_FILE::getHTMLListTag()
 MED_FILE::getId()
 MED_FILE::getMIMEType()
 MED_FILE::getMyLink()
 MED_FILE::getStateId()
 MED_FILE::getTitle()
 MED_FILE::sendHttpDownload()
 MED_FILE::sendHttpFile()
 MED_FILE::setDBRow()
 MED_FILE::setFile()
 MED_FILE::setFileFromSource()
 MED_FILE::setFileFromUpload()
 MED_FILE::setFORMPOST()
 MED_FILE::setMIMEfromExtension()
 MED_FILE::setMIMEType()

Inherited From MED_TABLEOBJ

 MED_TABLEOBJ::getCategory()
 MED_TABLEOBJ::getCatId()
 MED_TABLEOBJ::getCatRootDir()
 MED_TABLEOBJ::setCatId()
 MED_TABLEOBJ::setName()

Inherited From DBMS_TABLEOBJ

 DBMS_TABLEOBJ::DBMS_TABLEOBJ()
 DBMS_TABLEOBJ::cacheRestore()
 DBMS_TABLEOBJ::cacheWriteTo()
 DBMS_TABLEOBJ::clearErrors()
 DBMS_TABLEOBJ::dbDelete()
 DBMS_TABLEOBJ::dbGetDataArray()
 DBMS_TABLEOBJ::dbGetForm()
 DBMS_TABLEOBJ::dbInsert()
 DBMS_TABLEOBJ::dbPopulate()
 DBMS_TABLEOBJ::dbReplace()
 DBMS_TABLEOBJ::dbSave()
 DBMS_TABLEOBJ::db_SetKey()
 DBMS_TABLEOBJ::db_SetKeyArray()
 DBMS_TABLEOBJ::getClassInclude()
 DBMS_TABLEOBJ::getDbDesc()
 DBMS_TABLEOBJ::getDBField()
 DBMS_TABLEOBJ::getDBRow()
 DBMS_TABLEOBJ::getDBVal()
 DBMS_TABLEOBJ::getDefaults()
 DBMS_TABLEOBJ::getErrorMsg()
 DBMS_TABLEOBJ::getFieldDBDefault()
 DBMS_TABLEOBJ::getForm()
 DBMS_TABLEOBJ::getFormClassName()
 DBMS_TABLEOBJ::getFormName()
 DBMS_TABLEOBJ::getJSON()
 DBMS_TABLEOBJ::getKeyArr()
 DBMS_TABLEOBJ::getMyTable()
 DBMS_TABLEOBJ::getObjValArray()
 DBMS_TABLEOBJ::getObjValValue()
 DBMS_TABLEOBJ::getPopulateTs()
 DBMS_TABLEOBJ::getWhere()
 DBMS_TABLEOBJ::hasChanged()
 DBMS_TABLEOBJ::hasColumn()
 DBMS_TABLEOBJ::hasErrors()
 DBMS_TABLEOBJ::hasObjVals()
 DBMS_TABLEOBJ::init()
 DBMS_TABLEOBJ::isInit()
 DBMS_TABLEOBJ::isPopulated()
 DBMS_TABLEOBJ::keysAreSet()
 DBMS_TABLEOBJ::populateFromKeys()
 DBMS_TABLEOBJ::populateFromValues()
 DBMS_TABLEOBJ::populateObjVals()
 DBMS_TABLEOBJ::p_cacheIsExpired()
 DBMS_TABLEOBJ::saveLinkedRow()
 DBMS_TABLEOBJ::saveLinkedTableRows()
 DBMS_TABLEOBJ::saveObjVals()
 DBMS_TABLEOBJ::setChanged()
 DBMS_TABLEOBJ::setDBField()
 DBMS_TABLEOBJ::setDBFieldIfDiff()
 DBMS_TABLEOBJ::setDBFieldIfEmpty()
 DBMS_TABLEOBJ::setDBRow()
 DBMS_TABLEOBJ::setDBVal()
 DBMS_TABLEOBJ::setDefaults()
 DBMS_TABLEOBJ::setError()
 DBMS_TABLEOBJ::setLinkedTableRow()
 DBMS_TABLEOBJ::setMyTable()
 DBMS_TABLEOBJ::setObjValArray()
 DBMS_TABLEOBJ::setObjValValue()
 DBMS_TABLEOBJ::setObjVarIfEmpty()
 DBMS_TABLEOBJ::setUnChanged()
 DBMS_TABLEOBJ::userIsAllowed()
 DBMS_TABLEOBJ::writeDebugInfo()
 DBMS_TABLEOBJ::xmladdDOMElement()
 DBMS_TABLEOBJ::xmlExport()
 DBMS_TABLEOBJ::_getCacheFileName()
 DBMS_TABLEOBJ::_getDBFields()

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 Constants

Inherited Constants

Inherited from DBMS_TABLEOBJ

DBMS_TABLEOBJ::CLASS_SRC_FILE

Inherited from OCSP_OBJ

OCSP_OBJ::CLASS_SRC_FILE

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