Search:

# CWIS Developers Documentation

- Main Page
- Classes
- Files

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# MessageFactory Class Reference

Factory for forum messages / resource comments. More...

Inheritance diagram for MessageFactory:

[legend]
Collaboration diagram for MessageFactory:

[legend]
List of all members.

## Setup/Initialization
| MessageFactory ()
| Object constructor.
## Accessors
| GetMessagesPostedByUser ($UserId, $Count=NULL)
| Get all messages posted by specified user, in reverse date order.

## Detailed Description

Factory for forum messages / resource comments.

Definition at line 16 of file MessageFactory.php.

## Member Function Documentation

MessageFactory::GetMessagesPostedByUser | ( | $ | UserId,
|  | $ | Count = `NULL` |
| ) |  |  |

Get all messages posted by specified user, in reverse date order.

Parameters:

  | UserId | ID of user.
  | Count | Number of messages to retrieve. (OPTIONAL)

Returns:
  Array of messages.

Definition at line 40 of file MessageFactory.php.

MessageFactory::MessageFactory | ( |  | ) |

Object constructor.

Definition at line 24 of file MessageFactory.php.

References ItemFactory::ItemFactory().

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

- MessageFactory.php