| | |
| | | |
| | | protected $raw_data; |
| | | protected $mailbox; |
| | | protected $meta = array(); |
| | | protected $meta = array(); |
| | | protected $params = array(); |
| | | protected $order = 'ASC'; |
| | | protected $order = 'ASC'; |
| | | |
| | | const SEPARATOR_ELEMENT = ' '; |
| | | |
| | |
| | | /** |
| | | * Object constructor. |
| | | */ |
| | | public function __construct($mailbox = null, $data = null) |
| | | public function __construct($mailbox = null, $data = null, $order = null) |
| | | { |
| | | $this->mailbox = $mailbox; |
| | | $this->order = $order == 'DESC' ? 'DESC' : 'ASC'; |
| | | $this->init($data); |
| | | } |
| | | |
| | |
| | | */ |
| | | public function is_error() |
| | | { |
| | | return $this->raw_data === null ? true : false; |
| | | return $this->raw_data === null; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public function is_empty() |
| | | { |
| | | return empty($this->raw_data) ? true : false; |
| | | return empty($this->raw_data); |
| | | } |
| | | |
| | | /** |