<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
require_once 'ezc/Base/src/ezc_bootstrap.php';
require_once 'ezc/autoload/mail_autoload.php';
+
+/**
+ * Class CRM_Mailing_MailStore_Localdir
+ */
class CRM_Mailing_MailStore_Localdir extends CRM_Mailing_MailStore {
/**
* Connect to the supplied dir and make sure the two mail dirs exist
*
- * @param string $dir dir to operate upon
+ * @param string $dir dir to operate upon
*
- * @return void
+ * @return \CRM_Mailing_MailStore_Localdir
*/
- function __construct($dir) {
+ public function __construct($dir) {
$this->_dir = $dir;
$this->_ignored = $this->maildir(implode(DIRECTORY_SEPARATOR, array('CiviMail.ignored', date('Y'), date('m'), date('d'))));
*
* @return array array of ezcMail objects
*/
- function fetchNext($count = 0) {
+ public function fetchNext($count = 0) {
$mails = array();
$path = rtrim($this->_dir, DIRECTORY_SEPARATOR);
/**
* Fetch the specified message to the local ignore folder
*
- * @param integer $file file location of the message to fetch
+ * @param integer $file file location of the message to fetch
*
+ * @throws Exception
* @return void
*/
- function markIgnored($file) {
+ public function markIgnored($file) {
if ($this->_debug) {
print "moving $file to ignored folder\n";
}
/**
* Fetch the specified message to the local processed folder
*
- * @param integer $file file location of the message to fetch
+ * @param integer $file file location of the message to fetch
*
+ * @throws Exception
* @return void
*/
- function markProcessed($file) {
+ public function markProcessed($file) {
if ($this->_debug) {
print "moving $file to processed folder\n";
}
}
}
}
-