* @license PHP License * @package Wombat * @subpackage MailMime */ WBClass::load( 'WBMail_Mime' , 'WBMail_Mime_Processor_Observable' ); /** * Wombat Mail Mime Processor * * Execute command for Mime Mail * * @version 0.1.0 * @package Wombat * @subpackage MailMime */ class WBMail_Mime_Processor extends WBStdClass { /** * mail instance * @var WBMail_Mime */ protected $mail; /** * Observerable subject * @var WBMail_Mime_Processor_Observable */ protected $subject; /** * Parameter list * */ protected $params = array(); /** * Set mail object * @param WBMail_Mime $mail */ public function setMimeMail(WBMail_Mime $mail ) { $this->mail = $mail; } /** * Explode standard parameters * * @var array */ protected function explodeParams($params) { foreach ($params as $p) { if (strstr($p, '=')) { $p = explode('=', $p, 2); $this->params[$p[0]] = $p[1]; continue; } $this->params[$p] = 1; } } /** * Inject observerable object * * @param WBMail_Mime_Processor_Observable $subject */ public function setObservable(WBMail_Mime_Processor_Observable $subject) { $this->subject = $subject; } /** * Execute * * Run command * * @param array $params * @return int 0 on success */ public function execute($params) { return 0; } }