dmFavorite Class Reference

Inheritance diagram for dmFavorite:
dmObject dmModel

Public Member Functions

Static Public Member Functions


Detailed Description

Definition at line 22 of file dmFavorite.class.php.


Member Function Documentation

dmFavorite::delete (  )  [final]

Instance method for deleting a single instantiated dmFavorite.

Removes it from the user's cookie before destroying the object. Must be called before the HTTP header has been output.

Returns:
void
Since:
0.1

Definition at line 64 of file dmFavorite.class.php.

dmFavorite::getIndex (  )  [final]

Convenience method that wraps dmCart::getIndex().

Returns:
int
See also:
dmCart::getIndex()
Since:
0.1

Definition at line 76 of file dmFavorite.class.php.

Referenced by delete(), and move().

static dmFavorite::instantiate ( dmCollection c,
ptr 
) [static]

Parameters:
dmCollection c
int ptr
Returns:
dmObject
Exceptions:
dmUnavailableObjectException 
Since:
0.3

Reimplemented from dmObject.

Definition at line 32 of file dmFavorite.class.php.

dmFavorite::move ( to  )  [final]
Parameters:
int to
Deprecated:
Currently untested and not being used; may go away
Since:
0.1

Definition at line 104 of file dmFavorite.class.php.

static dmFavorite::remove ( array $  favorites  )  [static, final]

A method for removing favorites in a static context.

It must be called before the HTTP header has been output.

Parameters:
array favorites
Returns:
void
Since:
0.1

Definition at line 44 of file dmFavorite.class.php.

dmFavorite::save (  )  [final]

Saves an instantiated favorite to the user's cookie.

Must be called before the HTTP header has been output.

Returns:
void
Since:
0.1

Definition at line 87 of file dmFavorite.class.php.


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

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