<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
/**
* Return the proper mail store implementation, based on config settings
*
- * @param string $name name of the settings set from civimail_mail_settings to use (null for default)
+ * @param string $name
+ * Name of the settings set from civimail_mail_settings to use (null for default).
*
* @throws Exception
* @return object mail store implementation for processing CiviMail-bound emails
*
* @return array array of ezcMail objects
*/
- function allMails() {
+ public function allMails() {
return $this->fetchNext(0);
}
/**
* Expunge the messages marked for deletion; stub function to be redefined by IMAP store
*/
- function expunge() {}
+ public function expunge() {}
/**
* Return the next X messages from the mail store
*
- * @param int $count number of messages to fetch (0 to fetch all)
+ * @param int $count
+ * Number of messages to fetch (0 to fetch all).
*
* @return array array of ezcMail objects
*/
- function fetchNext($count = 1) {
+ public function fetchNext($count = 1) {
if (isset($this->_transport->options->uidReferencing) and $this->_transport->options->uidReferencing) {
$offset = array_shift($this->_transport->listUniqueIdentifiers());
}
/**
* Point to (and create if needed) a local Maildir for storing retrieved mail
*
- * @param string $name name of the Maildir
+ * @param string $name
+ * Name of the Maildir.
*
* @throws Exception
* @return string path to the Maildir's cur directory
*/
- function maildir($name) {
+ public function maildir($name) {
$config = CRM_Core_Config::singleton();
$dir = $config->customFileUploadDir . DIRECTORY_SEPARATOR . $name;
foreach (array(
return $dir . DIRECTORY_SEPARATOR . 'cur';
}
}
-