MailhandlerCommands.class.php in Mailhandler 6.2
Same filename and directory in other branches
Definition of MailhandlerCommands class.
File
plugins/mailhandler/commands/MailhandlerCommands.class.phpView source
<?php
/**
* @file
* Definition of MailhandlerCommands class.
*/
/**
* Allows additional Feeds Processor sources to be mapped.
*
* When selected from the Mailhandler Parser, uses properties of a message to
* set Feeds Processor sources. These sources can come from standard IMAP
* headers / MIME parts, be "commanded" by key: value pairs in message bodies,
* etc...
*/
abstract class MailhandlerCommands {
protected $commands = NULL;
/**
* Parse commands from email body.
*
* @param $object
* Node object of the node being built for submission.
*/
public function parse(&$message, $source, $client) {
return;
}
/**
* Process parsed commands by applying / manipulating the node object.
*
* @param $object
* Node object of the node being built for submission.
*/
public abstract function process(&$message, $source);
/**
* Return mapping sources in the same manner as a Feeds Parser.
*
* @return
* Array containing mapping sources in standard Feeds Parser format.
*/
public function getMappingSources($config) {
return array();
}
/**
* Build configuration form.
*/
public function configForm(&$form, &$form_state, $config) {
return;
}
/**
* Build source form.
*/
public function sourceForm(&$form, $source_config) {
return;
}
}
Classes
Name | Description |
---|---|
MailhandlerCommands | Allows additional Feeds Processor sources to be mapped. |