dmCart Class Reference

Inheritance diagram for dmCart:
dmModel

Public Member Functions

Static Public Member Functions

Protected Member Functions


Detailed Description

Definition at line 18 of file dmCart.class.php.


Constructor & Destructor Documentation

dmCart::__construct (  )  [protected]
Since:
0.1

Definition at line 119 of file dmCart.class.php.


Member Function Documentation

dmCart::getAccessibleObjects (  )  [final]

Returns an array of all dmObjects in the cart that are accessible from within the current context (template set).

Returns:
Array of dmObjects, or an empty array if none exist
Since:
0.4
See also:
getObjects()

Definition at line 46 of file dmCart.class.php.

Referenced by getNumAccessibleObjects(), and hasAnyAccessibleObjects().

static dmCart::getInstance (  )  [static, final]
Returns:
dmCart
Since:
0.4

Definition at line 31 of file dmCart.class.php.

Referenced by dmObject::isFavorite().

dmCart::getNumAccessibleObjects (  )  [final]
Returns:
int
See also:
getNumObjects()
Since:
0.4

Definition at line 98 of file dmCart.class.php.

dmCart::getNumObjects (  )  [final]

Returns the total number of objects in the cart, regardless of whether the user has access to them from the current template set.

This may not be the desired behavior. From the templates, it's better to use self::getNumAccessibleObjects() instead.

Returns:
The number of items in the cart, as an integer
See also:
self::getNumAccessibleObjects()
Since:
0.1

Definition at line 112 of file dmCart.class.php.

dmCart::getObjects (  )  [final]

Returns an array of all dmObjects in the cart, whether or not they are accessible within the current context (template set).

Returns:
Array of dmObjects
Since:
0.1
See also:
getAccessibleObjects()

Definition at line 89 of file dmCart.class.php.

Referenced by getAccessibleObjects(), and hasAnyObjects().

dmCart::hasAnyAccessibleObjects (  )  [final]

Tests whether the cart contains any dmObjects that are accessible from within the current context (template set).

Returns:
Boolean
See also:
getAccessibleObjects()
hasAnyObjects()

Definition at line 65 of file dmCart.class.php.

dmCart::hasAnyObjects (  )  [final]

Tests whether the cart contains any dmObjects at all, whether or not they are accessible within the current context (template set).

Returns:
Boolean
See also:
hasAnyAccessibleObjects()
getObjects()

Definition at line 77 of file dmCart.class.php.


The documentation for this class was generated from the following file:

Generated on Fri Aug 20 13:16:49 2010 for dmBridge PHP API by  doxygen 1.6.1