mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-46284 core: Add e-mail fetcher from IMAP
This issue is a part of the MDL-47194 Task. This issue is a part of the MDL-39707 Epic.
This commit is contained in:
parent
6597413d41
commit
776b4acc81
21 changed files with 1909 additions and 3 deletions
|
@ -33,6 +33,7 @@ namespace core\message\inbound;
|
|||
* @property-read string $component The component of this handler
|
||||
* @property-read int $defaultexpiration Default expiration of new addresses for this handler
|
||||
* @property-read string $description The description of this handler
|
||||
* @property-read string $name The name of this handler
|
||||
* @property-read bool $validateaddress Whether the address validation is a requiredment
|
||||
* @property-read bool $enabled Whether this handler is currently enabled
|
||||
* @property-read string $classname The name of handler class
|
||||
|
@ -193,6 +194,14 @@ abstract class handler {
|
|||
*/
|
||||
protected abstract function get_description();
|
||||
|
||||
/**
|
||||
* Return a name for the current handler.
|
||||
* This appears in the admin pages as a human-readable name.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected abstract function get_name();
|
||||
|
||||
/**
|
||||
* Process the message against the current handler.
|
||||
*
|
||||
|
|
46
lib/classes/message/inbound/processing_failed_exception.php
Normal file
46
lib/classes/message/inbound/processing_failed_exception.php
Normal file
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Variable Envelope Return Path message processing failure exception.
|
||||
*
|
||||
* @package core_message
|
||||
* @copyright 2014 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace core\message\inbound;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Variable Envelope Return Path message processing failure exception.
|
||||
*
|
||||
* @copyright 2014 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class processing_failed_exception extends \moodle_exception {
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param string $identifier The string identifier to use when displaying this exception.
|
||||
* @param string $component The string component
|
||||
* @param stdClass $data The data to pass to get_string
|
||||
*/
|
||||
public function __construct($identifier, $component, \stdClass $data = null) {
|
||||
return parent::__construct($identifier, $component, '', $data);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue