Source for file MemberMessageList.php
Documentation is available at MemberMessageList.php
* Model for a list of member messages
* @author Carsten Lucke <luckec@php.net>
private $messages = array ();
* Total number of entries being retrieved.
* Total number of pages in the retrieval.
* Whether or not there are more messages left to retrieve.
private $moreItems = false;
* create new feedback model
public function __construct($messages, $session = null )
$this->moreItems = $messages['HasMoreItems'] == 'false' ? false : true;
$this->pages = (integer) $messages['PaginationResult']['TotalNumberOfPages'];
$this->entries = (integer) $messages['PaginationResult']['TotalNumberOfEntries'];
if (isset ($messages['MemberMessage'])) {
if (!isset ($messages['MemberMessage'][0 ])) {
$messages['MemberMessage'] = array ($messages['MemberMessage']);
foreach ($messages['MemberMessage'] as $tmp) {
unset ($messages['MemberMessage']);
* iterate through the transactions
return new ArrayObject ($this->messages);
* Returns the total number of pages in the retrieval.
* @return integer total number of pages in the retrieval
* Returns the total number of entries being retrieved.
* @return integer total number of entries being retrieved
* Determines whether or not there are more messages left to retrieve.
* @return boolean whether or not there are more messages left to retrieve
Documentation generated on Mon, 11 Mar 2019 15:49:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|