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 30 of file oxorderfile.php.
oxOrderFile._getFieldLongName | ( | $ | sFieldName | ) | [protected] |
returns long name
string | $sFieldName - field name |
Reimplemented from oxBase.
Definition at line 127 of file oxorderfile.php.
oxOrderFile.getFileId | ( | ) |
oxOrderFile.getFileSize | ( | ) |
Returns downloadable file size in bytes.
Definition at line 112 of file oxorderfile.php.
oxOrderFile.getLeftDownloadCount | ( | ) |
oxOrderFile.getValidUntil | ( | ) |
oxOrderFile.isPaid | ( | ) |
oxOrderFile.isValid | ( | ) |
Checks if order file is still available to download
Definition at line 150 of file oxorderfile.php.
oxOrderFile.processOrderFile | ( | ) |
Checks if download link is valid, changes count, if first download changes valid until
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
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 94 of file oxorderfile.php.
oxOrderFile.setOrderArticleId | ( | $ | sOrderArticleId | ) |
set order article id
string | $sOrderArticleId - order article id |
Definition at line 70 of file oxorderfile.php.
oxOrderFile.setOrderId | ( | $ | sOrderId | ) |
oxOrderFile.setShopId | ( | $ | sShopId | ) |
set shop id
string | $sShopId - shop id |
Reimplemented from oxBase.
Definition at line 80 of file oxorderfile.php.
oxOrderFile.$_sClassName = 'oxorderfile' [protected] |
Reimplemented from oxBase.
Definition at line 22 of file oxorderfile.php.
oxOrderFile.$_sCoreTable = 'oxorderfiles' [protected] |
Reimplemented from oxBase.
Definition at line 15 of file oxorderfile.php.