ZenMagick 0.9.6


org.zenmagick.model.order.ZMDownload

Class ZMDownload

ZMObject
|
+--ZMDownload

public class ZMDownload
extends ZMObject

A single download.

Author:
DerManoMann
Version:
$Id: ZMDownload.php 2054 2009-03-12 03:41:22Z dermanomann $

Fields inherited from org.zenmagick.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.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMDownload

public ZMDownload()

Create new total. /


Method Detail

getDownloadCount

public int getDownloadCount()

Get the download count.

Returns:
The number of downloads.

getFileSize

public long getFileSize()

Get the download filesize.

Returns:
The filesize.

getFilename

public string getFilename()

Get the file name.

Returns:
The file name.

getId

public int getId()

Get the download id.

Returns:
The download id.

getMaxDays

public int getMaxDays()

Get the max number of days the download is available.

Returns:
The number of days.

getOrderDate

public date getOrderDate()

Get the order date.

Returns:
The order date.

getOrderId

public int getOrderId()

Get the order id.

Returns:
The order id.

getOrderItemId

public int getOrderItemId()

Get the order item id.

Returns:
The order item id.

getProductId

public string getProductId()

Get the product id.

Returns:
The product id.

getStatus

public int getStatus()

Get the status of the corresponding order.

Returns:
The order status.

isDownloadable

public boolean isDownloadable()

Check if downloadable.

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

isLimited

public boolean isLimited()

Check if this download is limited.

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

setDownloadCount

public void setDownloadCount(int downloadCount)

Set the download count.

Parameters:
downloadCount - The number of downloads.

setFilename

public void setFilename(string filename)

Set the filename.

Parameters:
filename - The filename.

setId

public void setId(int id)

Set the download id.

Parameters:
id - The download id.

setMaxDays

public void setMaxDays(int maxDays)

Set the max number of days the download is available.

Parameters:
maxDays - The number of days.

setOrderDate

public void setOrderDate(date date)

Set the order date.

Parameters:
date - The order date.

setOrderId

public void setOrderId(int orderId)

Set the order id.

Parameters:
orderId - The order id.

setOrderProductId

public void setOrderProductId(int orderItemId)

Set the order item id.

Parameters:
orderItemId - The order item id.

setProductId

public void setProductId(string productId)

Set the product id.

Parameters:
productId - The product id.

setStatus

public void setStatus(int status)

Set the status of the corresponding order.

Parameters:
status - The order status.

ZenMagick 0.9.6