ZenMagick 0.9.10


zenmagick.store.shared.model.order\ZMDownload
model\order\ZMDownload.php at line 33

Class ZMDownload

ZMObject
└─ZMDownload

public class ZMDownload
extends ZMObject

A single download.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct()

Create new total.

int

getDownloadCount()

Get the download count.

long

getFileSize()

Get the download filesize.

string

getFilename()

Get the file name.

int

getId()

Get the download id.

int

getMaxDays()

Get the max number of days the download is available.

date

getOrderDate()

Get the order date.

int

getOrderId()

Get the order id.

int

getOrderItemId()

Get the order item id.

string

getProductId()

Get the product id.

int

getStatus()

Get the status of the corresponding order.

boolean

isDownloadable()

Check if downloadable.

boolean

isLimited()

Check if this download is limited.

void

setDownloadCount(int downloadCount)

Set the download count.

void

setFilename(string filename)

Set the filename.

void

setId(int id)

Set the download id.

void

setMaxDays(int maxDays)

Set the max number of days the download is available.

void

setOrderDate(date date)

Set the order date.

void

setOrderId(int orderId)

Set the order id.

void

setOrderProductId(int orderItemId)

Set the order item id.

void

setProductId(string productId)

Set the product id.

void

setStatus(int status)

Set the status of the corresponding order.

Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

model\order\ZMDownload.php at line 48

__construct

public void __construct()

Create new total.


model\order\ZMDownload.php at line 114

getDownloadCount

public int getDownloadCount()

Get the download count.

Returns:
The number of downloads.

model\order\ZMDownload.php at line 212

getFileSize

public long getFileSize()

Get the download filesize.

Returns:
The filesize.

model\order\ZMDownload.php at line 107

getFilename

public string getFilename()

Get the file name.

Returns:
The file name.

model\order\ZMDownload.php at line 65

getId

public int getId()

Get the download id.

Returns:
The download id.

model\order\ZMDownload.php at line 100

getMaxDays

public int getMaxDays()

Get the max number of days the download is available.

Returns:
The number of days.

model\order\ZMDownload.php at line 93

getOrderDate

public date getOrderDate()

Get the order date.

Returns:
The order date.

model\order\ZMDownload.php at line 72

getOrderId

public int getOrderId()

Get the order id.

Returns:
The order id.

model\order\ZMDownload.php at line 79

getOrderItemId

public int getOrderItemId()

Get the order item id.

Returns:
The order item id.

model\order\ZMDownload.php at line 86

getProductId

public string getProductId()

Get the product id.

Returns:
The product id.

model\order\ZMDownload.php at line 121

getStatus

public int getStatus()

Get the status of the corresponding order.

Returns:
The order status.

model\order\ZMDownload.php at line 191

isDownloadable

public boolean isDownloadable()

Check if downloadable.

Returns:
true if this download is (still) available for download.

model\order\ZMDownload.php at line 203

isLimited

public boolean isLimited()

Check if this download is limited.

Returns:
true if this download is limited by date/count.

model\order\ZMDownload.php at line 177

setDownloadCount

public void setDownloadCount(int downloadCount)

Set the download count.

Parameters:
downloadCount - The number of downloads.

model\order\ZMDownload.php at line 170

setFilename

public void setFilename(string filename)

Set the filename.

Parameters:
filename - The filename.

model\order\ZMDownload.php at line 128

setId

public void setId(int id)

Set the download id.

Parameters:
id - The download id.

model\order\ZMDownload.php at line 163

setMaxDays

public void setMaxDays(int maxDays)

Set the max number of days the download is available.

Parameters:
maxDays - The number of days.

model\order\ZMDownload.php at line 156

setOrderDate

public void setOrderDate(date date)

Set the order date.

Parameters:
date - The order date.

model\order\ZMDownload.php at line 135

setOrderId

public void setOrderId(int orderId)

Set the order id.

Parameters:
orderId - The order id.

model\order\ZMDownload.php at line 142

setOrderProductId

public void setOrderProductId(int orderItemId)

Set the order item id.

Parameters:
orderItemId - The order item id.

model\order\ZMDownload.php at line 149

setProductId

public void setProductId(string productId)

Set the product id.

Parameters:
productId - The product id.

model\order\ZMDownload.php at line 184

setStatus

public void setStatus(int status)

Set the status of the corresponding order.

Parameters:
status - The order status.

ZenMagick 0.9.10