Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Swift_FailoverTransport
  • Swift_LoadBalancedTransport
  • Swift_MailTransport
  • Swift_Plugins_Loggers_ArrayLogger
  • Swift_Plugins_Loggers_EchoLogger
  • Swift_SendmailTransport
  • Swift_SmtpTransport
  • Swift_Transport_AbstractSmtpTransport
  • Swift_Transport_Esmtp_Auth_CramMd5Authenticator
  • Swift_Transport_Esmtp_Auth_LoginAuthenticator
  • Swift_Transport_Esmtp_Auth_PlainAuthenticator
  • Swift_Transport_Esmtp_AuthHandler
  • Swift_Transport_EsmtpTransport
  • Swift_Transport_FailoverTransport
  • Swift_Transport_LoadBalancedTransport
  • Swift_Transport_MailTransport
  • Swift_Transport_SendmailTransport
  • Swift_Transport_SimpleMailInvoker
  • Swift_Transport_StreamBuffer

Interfaces

  • Swift_Plugins_Logger
  • Swift_Plugins_Pop_Pop3Exception
  • Swift_Transport
  • Swift_Transport_Esmtp_Authenticator
  • Swift_Transport_EsmtpHandler
  • Swift_Transport_IoBuffer
  • Swift_Transport_MailInvoker
  • Swift_Transport_SmtpAgent
  • Swift_TransportException
  • Overview
  • Package
  • Function
  • Todo
  • Download
 1: <?php
 2: 
 3: /*
 4:  * This file is part of SwiftMailer.
 5:  * (c) 2011 Fabien Potencier
 6:  *
 7:  * For the full copyright and license information, please view the LICENSE
 8:  * file that was distributed with this source code.
 9:  */
10: 
11: /**
12:  * Stores all sent emails for further usage.
13:  * @package Swift
14:  * @subpackage Plugins
15:  * @author Fabien Potencier
16:  */
17: class Swift_Plugins_MessageLogger implements Swift_Events_SendListener
18: {
19:     /**
20:      * @var array
21:      */
22:     private $messages;
23: 
24:     public function __construct()
25:     {
26:         $this->messages = array();
27:     }
28: 
29:     /**
30:      * Get the message list
31:      *
32:      * @return array
33:      */
34:     public function getMessages()
35:     {
36:         return $this->messages;
37:     }
38: 
39:     /**
40:      * Get the message count
41:      *
42:      * @return int count
43:      */
44:     public function countMessages()
45:     {
46:         return count($this->messages);
47:     }
48: 
49:     /**
50:      * Empty the message list
51:      *
52:      */
53:     public function clear()
54:     {
55:         $this->messages = array();
56:     }
57: 
58:     /**
59:      * Invoked immediately before the Message is sent.
60:      *
61:      * @param Swift_Events_SendEvent $evt
62:      */
63:     public function beforeSendPerformed(Swift_Events_SendEvent $evt)
64:     {
65:         $this->messages[] = clone $evt->getMessage();
66:     }
67: 
68:     /**
69:      * Invoked immediately after the Message is sent.
70:      *
71:      * @param Swift_Events_SendEvent $evt
72:      */
73:     public function sendPerformed(Swift_Events_SendEvent $evt)
74:     {
75:     }
76: }
77: 
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen