Public Member Functions | |
__construct () | |
reset () | |
setOrderId ($sOrderId) | |
setOrderArticleId ($sOrderArticleId) | |
setShopId ($sShopId) | |
setFile ($sFileName, $sFileId, $iMaxDownloadCounts, $iExpirationTime, $iExpirationDownloadTime) | |
getFileSize () | |
isValid () | |
isPaid () | |
getValidUntil () | |
getLeftDownloadCount () | |
processOrderFile () | |
getFileId () | |
Protected Member Functions | |
_getFieldLongName ($sFieldName) | |
Protected Attributes | |
$_sCoreTable = 'oxorderfiles' | |
$_sClassName = 'oxorderfile' |
Article file link manager.
Definition at line 7 of file oxorderfile.php.
oxOrderFile.__construct | ( | ) |
Initialises the instance
Reimplemented from oxBase.
Definition at line 29 of file oxorderfile.php.
oxOrderFile._getFieldLongName | ( | $ | sFieldName | ) | [protected] |
returns long name
string | $sFieldName - field name |
Reimplemented from oxBase.
Definition at line 135 of file oxorderfile.php.
oxOrderFile.getFileId | ( | ) |
Definition at line 239 of file oxorderfile.php.
oxOrderFile.getFileSize | ( | ) |
Returns downloadable file size in bytes.
Definition at line 121 of file oxorderfile.php.
oxOrderFile.getLeftDownloadCount | ( | ) |
oxOrderFile.getValidUntil | ( | ) |
oxOrderFile.isPaid | ( | ) |
oxOrderFile.isValid | ( | ) |
Checks if order file is still available to download
Definition at line 158 of file oxorderfile.php.
oxOrderFile.processOrderFile | ( | ) |
Checks if download link is valid, changes count, if first download changes valid until
Definition at line 214 of file oxorderfile.php.
oxOrderFile.reset | ( | ) |
reset order files downloadcount and / or expration times
Definition at line 40 of file oxorderfile.php.
oxOrderFile.setFile | ( | $ | sFileName, | |
$ | sFileId, | |||
$ | iMaxDownloadCounts, | |||
$ | iExpirationTime, | |||
$ | iExpirationDownloadTime | |||
) |
Set file and download options
string | $sFileName file name | |
string | $sFileId file id | |
int | $iMaxDownloadCounts max download count | |
int | $iExpirationTime main download time after order in times | |
int | $iExpirationDownloadTime download time after first download in hours |
Definition at line 103 of file oxorderfile.php.
oxOrderFile.setOrderArticleId | ( | $ | sOrderArticleId | ) |
set order article id
string | $sOrderArticleId - order article id |
Definition at line 75 of file oxorderfile.php.
oxOrderFile.setOrderId | ( | $ | sOrderId | ) |
set order id
string | $sOrderId - order id |
Definition at line 63 of file oxorderfile.php.
oxOrderFile.setShopId | ( | $ | sShopId | ) |
set shop id
string | $sShopId - shop id |
Reimplemented from oxBase.
Definition at line 87 of file oxorderfile.php.
oxOrderFile.$_sClassName = 'oxorderfile' [protected] |
Reimplemented from oxBase.
Definition at line 21 of file oxorderfile.php.
oxOrderFile.$_sCoreTable = 'oxorderfiles' [protected] |
Reimplemented from oxBase.
Definition at line 14 of file oxorderfile.php.