MailMessages

Summary
MailMessages
AuthorJaybill McCarthy
Licensehttp://communit.as/docs/license
See AlsoMail_Db_Table
Instance Variables
$_nameThe name of the table or view to interact with in the data source.
$_primaryThe primary key of the table or view to interact with in the data source.
Instance Methods
getNewMailByUsernameCounts the number of unread messages a user has.
getSentMailByUsernameCounts the number of messages a user has sent.
getAllMailByUsernameCounts the number of messages a user has sent and recieved.

Author

Jaybill McCarthy

Instance Variables

$_name

protected $_name

The name of the table or view to interact with in the data source.

$_primary

protected $_primary

The primary key of the table or view to interact with in the data source.

Instance Methods

getNewMailByUsername

public function getNewMailByUsername($username)

Counts the number of unread messages a user has.

Arguments

usernameThe username of the user for which to count messages.

Returns: int

getSentMailByUsername

public function getSentMailByUsername($username)

Counts the number of messages a user has sent.

Arguments

usernameThe username of the user for which to count messages.

Returns: int

getAllMailByUsername

public function getAllMailByUsername($username)

Counts the number of messages a user has sent and recieved.

Arguments

usernameThe username of the user for which to count messages.

Returns: int

protected $_name
The name of the table or view to interact with in the data source.
protected $_primary
The primary key of the table or view to interact with in the data source.
public function getNewMailByUsername($username)
Counts the number of unread messages a user has.
public function getSentMailByUsername($username)
Counts the number of messages a user has sent.
public function getAllMailByUsername($username)
Counts the number of messages a user has sent and recieved.
Close