ZenMagick 0.9.8


org.zenmagick.store.model.order.ZMDownload
\store\model\order\ZMDownload.php at line 34

Class ZMDownload

ZMObject
└─ZMDownload

public class ZMDownload
extends ZMObject

A single download.

Author:
DerManoMann
Version:
$Id: ZMDownload.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMDownload()

Create new total.

Method Summary
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
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\model\order\ZMDownload.php at line 49

ZMDownload

public ZMDownload()

Create new total.


Method Detail

\store\model\order\ZMDownload.php at line 115

getDownloadCount

public int getDownloadCount()

Get the download count.

Returns:
The number of downloads.

\store\model\order\ZMDownload.php at line 213

getFileSize

public long getFileSize()

Get the download filesize.

Returns:
The filesize.

\store\model\order\ZMDownload.php at line 108

getFilename

public string getFilename()

Get the file name.

Returns:
The file name.

\store\model\order\ZMDownload.php at line 66

getId

public int getId()

Get the download id.

Returns:
The download id.

\store\model\order\ZMDownload.php at line 101

getMaxDays

public int getMaxDays()

Get the max number of days the download is available.

Returns:
The number of days.

\store\model\order\ZMDownload.php at line 94

getOrderDate

public date getOrderDate()

Get the order date.

Returns:
The order date.

\store\model\order\ZMDownload.php at line 73

getOrderId

public int getOrderId()

Get the order id.

Returns:
The order id.

\store\model\order\ZMDownload.php at line 80

getOrderItemId

public int getOrderItemId()

Get the order item id.

Returns:
The order item id.

\store\model\order\ZMDownload.php at line 87

getProductId

public string getProductId()

Get the product id.

Returns:
The product id.

\store\model\order\ZMDownload.php at line 122

getStatus

public int getStatus()

Get the status of the corresponding order.

Returns:
The order status.

\store\model\order\ZMDownload.php at line 192

isDownloadable

public boolean isDownloadable()

Check if downloadable.

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

\store\model\order\ZMDownload.php at line 204

isLimited

public boolean isLimited()

Check if this download is limited.

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

\store\model\order\ZMDownload.php at line 178

setDownloadCount

public void setDownloadCount(int downloadCount)

Set the download count.

Parameters:
downloadCount - The number of downloads.

\store\model\order\ZMDownload.php at line 171

setFilename

public void setFilename(string filename)

Set the filename.

Parameters:
filename - The filename.

\store\model\order\ZMDownload.php at line 129

setId

public void setId(int id)

Set the download id.

Parameters:
id - The download id.

\store\model\order\ZMDownload.php at line 164

setMaxDays

public void setMaxDays(int maxDays)

Set the max number of days the download is available.

Parameters:
maxDays - The number of days.

\store\model\order\ZMDownload.php at line 157

setOrderDate

public void setOrderDate(date date)

Set the order date.

Parameters:
date - The order date.

\store\model\order\ZMDownload.php at line 136

setOrderId

public void setOrderId(int orderId)

Set the order id.

Parameters:
orderId - The order id.

\store\model\order\ZMDownload.php at line 143

setOrderProductId

public void setOrderProductId(int orderItemId)

Set the order item id.

Parameters:
orderItemId - The order item id.

\store\model\order\ZMDownload.php at line 150

setProductId

public void setProductId(string productId)

Set the product id.

Parameters:
productId - The product id.

\store\model\order\ZMDownload.php at line 185

setStatus

public void setStatus(int status)

Set the status of the corresponding order.

Parameters:
status - The order status.

ZenMagick 0.9.8