snappymail/rainloop/v/0.0.0/app/libraries/MailSo/Mail/MessageCollection.php

124 lines
1.5 KiB
PHP
Raw Normal View History

2013-09-25 03:04:44 +08:00
<?php
2014-10-17 18:15:19 +08:00
/*
* This file is part of MailSo.
*
* (c) 2014 Usenko Timur
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2013-09-25 03:04:44 +08:00
namespace MailSo\Mail;
/**
* @category MailSo
* @package Mail
*/
class MessageCollection extends \MailSo\Base\Collection
{
/**
* @var string
*/
public $FolderHash;
/**
* @var int
*/
public $MessageCount;
/**
* @var int
*/
public $MessageUnseenCount;
/**
* @var int
*/
public $MessageResultCount;
/**
* @var string
*/
public $FolderName;
/**
* @var int
*/
public $Offset;
/**
* @var int
*/
public $Limit;
/**
* @var string
*/
public $Search;
/**
* @var string
*/
public $UidNext;
2015-04-21 03:49:51 +08:00
/**
* @var string
*/
public $ThreadUid;
2013-09-25 03:04:44 +08:00
/**
* @var array
*/
public $NewMessages;
/**
* @var bool
2013-09-25 03:04:44 +08:00
*/
public $Filtered;
2013-09-25 03:04:44 +08:00
/**
* @access protected
*/
protected function __construct()
{
parent::__construct();
$this->Clear();
}
/**
* @return \MailSo\Mail\MessageCollection
*/
public static function NewInstance()
{
return new self();
}
/**
* @return \MailSo\Mail\MessageCollection
*/
public function Clear()
{
parent::Clear();
$this->FolderHash = '';
$this->MessageCount = 0;
$this->MessageUnseenCount = 0;
$this->MessageResultCount = 0;
$this->FolderName = '';
$this->Offset = 0;
$this->Limit = 0;
$this->Search = '';
$this->UidNext = '';
2015-04-21 03:49:51 +08:00
$this->ThreadUid = '';
2013-09-25 03:04:44 +08:00
$this->NewMessages = array();
2015-04-21 03:49:51 +08:00
$this->Filtered = false;
2013-09-25 03:04:44 +08:00
return $this;
}
}