OXID eShop CE  4.9.5
 All Classes Files Functions Variables Pages
oxOrderFile Class Reference
+ Inheritance diagram for oxOrderFile:
+ Collaboration diagram for oxOrderFile:

Public Member Functions

 __construct ()
 reset ()
 setOrderId ($sOrderId)
 setOrderArticleId ($sOrderArticleId)
 setShopId ($sShopId)
 setFile ($sFileName, $sFileId, $iMaxDownloadCounts, $iExpirationTime, $iExpirationDownloadTime)
 getFileSize ()
 isValid ()
 isPaid ()
 getValidUntil ()
 getLeftDownloadCount ()
 processOrderFile ()
 getFileId ()
- Public Member Functions inherited from oxBase
 getUseSkipSaveFields ()
 setUseSkipSaveFields ($blUseSkipSaveFields)
 __set ($sName, $sValue)
 __get ($sName)
 __isset ($mVar)
 __clone ()
 oxClone ($oObject)
 getUpdateSeo ()
 setUpdateSeo ($blUpdateSeo)
 init ($sTableName=null, $blForceAllFields=false)
 assign ($dbRecord)
 getClassName ()
 getCoreTableName ()
 getId ()
 setId ($sOXID=null)
 getShopId ()
 getViewName ($blForceCoreTableUsage=null)
 modifyCacheKey ($sCacheKey, $blOverride=false)
 disableLazyLoading ()
 isDerived ()
 setIsDerived ($blVal)
 isMultilang ()
 load ($sOXID)
 isLoaded ()
 buildSelectString ($aWhere=null)
 assignRecord ($sSelect)
 getFieldData ($sFieldName)
 getSelectFields ($blForceCoreTableUsage=null)
 delete ($sOxId=null)
 save ()
 allowDerivedUpdate ()
 allowDerivedDelete ()
 exists ($sOXID=null)
 getSqlActiveSnippet ($blForceCoreTable=null)
 beforeUpdate ($sOXID=null)
 onChange ($iAction=null, $sOXID=null)
 setInList ()
 isOx ()
 isReadOnly ()
 setReadOnly ($blReadOnly)
 getFieldNames ()
 addFieldName ($sName)
 getLanguage ()
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _getFieldLongName ($sFieldName)
- Protected Member Functions inherited from oxBase
 _setUpdateSeoOnFieldChange ($sField)
 _removeElement2ShopRelations ($sOxId)
 _isInList ()
 _getObjectViewName ($sTable, $sShopID=null)
 _getTableFields ($sTable, $blReturnSimple=false)
 _getAllFields ($blReturnSimple=false)
 _initDataStructure ($blForceFullStructure=false)
 _getNonCachedFieldNames ($blForceFullStructure=false)
 _getFieldStatus ($sFieldName)
 _addField ($sName, $iStatus, $sType=null, $sLength=null)
 _setFieldData ($sFieldName, $sValue, $iDataType=oxField::T_TEXT)
 _canFieldBeNull ($sFieldName)
 _getFieldDefaultValue ($sFieldName)
 _getUpdateFieldValue ($sFieldName, $oField)
 _getUpdateFields ($blUseSkipSaveFields=true)
 _insert ()
 _isDisabledFieldCache ()
 _addSkippedSaveFieldsForMapping ()
 _disableLazyLoadingForCaching ()

Protected Attributes

 $_sCoreTable = 'oxorderfiles'
 $_sClassName = 'oxorderfile'
- Protected Attributes inherited from oxBase
 $_sOXID = null
 $_iShopId = null
 $_blIsSimplyClonable = true
 $_sClassName = 'oxbase'
 $_sCoreTable = null
 $_sViewTable = null
 $_aFieldNames = array('oxid' => 0)
 $_sCacheKey = null
 $_blUseLazyLoading = false
 $_aSkipSaveFields = array('oxtimestamp')
 $_blUseSkipSaveFields = true
 $_sExistKey = 'oxid'
 $_blIsDerived = null
 $_blIsSeoObject = false
 $_blUpdateSeo = true
 $_blReadOnly = false
 $_blIsInList = false
 $_isLoaded = false
 $_aInnerLazyCache = null
 $_blEmployMultilanguage = false

Additional Inherited Members

- Static Protected Attributes inherited from oxBase
static $_blDisableFieldCaching = array()

Detailed Description

Article file link manager.

Definition at line 7 of file oxorderfile.php.

Constructor & Destructor Documentation

oxOrderFile::__construct ( )

Initialises the instance

Returns
null

Reimplemented from oxBase.

Definition at line 30 of file oxorderfile.php.

Member Function Documentation

oxOrderFile::_getFieldLongName (   $sFieldName)
protected

returns long name

Parameters
string$sFieldName- field name
Returns
string

Reimplemented from oxBase.

Definition at line 127 of file oxorderfile.php.

oxOrderFile::getFileId ( )

Gets field id.

Returns
mixed

Definition at line 240 of file oxorderfile.php.

oxOrderFile::getFileSize ( )

Returns downloadable file size in bytes.

Returns
int

Definition at line 112 of file oxorderfile.php.

oxOrderFile::getLeftDownloadCount ( )

returns date ant time

Returns
bool

Definition at line 193 of file oxorderfile.php.

oxOrderFile::getValidUntil ( )

returns date ant time

Returns
bool

Definition at line 183 of file oxorderfile.php.

oxOrderFile::isPaid ( )

returns state payed or not the order

Returns
bool

Definition at line 173 of file oxorderfile.php.

oxOrderFile::isValid ( )

Checks if order file is still available to download

Returns
bool

Definition at line 150 of file oxorderfile.php.

oxOrderFile::processOrderFile ( )

Checks if download link is valid, changes count, if first download changes valid until

Returns
bool

Definition at line 208 of file oxorderfile.php.

oxOrderFile::reset ( )

reset order files downloadcount and / or expration times

Definition at line 39 of file oxorderfile.php.

oxOrderFile::setFile (   $sFileName,
  $sFileId,
  $iMaxDownloadCounts,
  $iExpirationTime,
  $iExpirationDownloadTime 
)

Set file and download options

Parameters
string$sFileNamefile name
string$sFileIdfile id
int$iMaxDownloadCountsmax download count
int$iExpirationTimemain download time after order in times
int$iExpirationDownloadTimedownload time after first download in hours

Definition at line 94 of file oxorderfile.php.

oxOrderFile::setOrderArticleId (   $sOrderArticleId)

set order article id

Parameters
string$sOrderArticleId- order article id

Definition at line 70 of file oxorderfile.php.

oxOrderFile::setOrderId (   $sOrderId)

set order id

Parameters
string$sOrderId- order id

Definition at line 60 of file oxorderfile.php.

oxOrderFile::setShopId (   $sShopId)

set shop id

Parameters
string$sShopId- shop id

Reimplemented from oxBase.

Definition at line 80 of file oxorderfile.php.

Member Data Documentation

oxOrderFile::$_sClassName = 'oxorderfile'
protected

Definition at line 22 of file oxorderfile.php.

oxOrderFile::$_sCoreTable = 'oxorderfiles'
protected

Definition at line 15 of file oxorderfile.php.


The documentation for this class was generated from the following file: