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:  * This file contains the maillog success collection and item class.
 4:  *
 5:  * @package Core
 6:  * @subpackage GenericDB_Model
 7:  * @version SVN Revision $Rev:$
 8:  *
 9:  * @author Simon Sprankel
10:  * @copyright four for business AG <www.4fb.de>
11:  * @license http://www.contenido.org/license/LIZENZ.txt
12:  * @link http://www.4fb.de
13:  * @link http://www.contenido.org
14:  */
15: 
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17: 
18: /**
19:  * Mail log success collection
20:  *
21:  * @package Core
22:  * @subpackage GenericDB_Model
23:  */
24: class cApiMailLogSuccessCollection extends ItemCollection {
25: 
26:     /**
27:      * Constructor
28:      */
29:     public function __construct() {
30:         global $cfg;
31:         parent::__construct($cfg['tab']['mail_log_success'], 'idmailsuccess');
32:         $this->_setItemClass('cApiMailLogSuccess');
33: 
34:         // set the join partners so that joins can be used via link() method
35:         $this->_setJoinPartner('cApiMailLogCollection');
36:     }
37: 
38:     /**
39:      * Creates a new mail log success entry with the given data.
40:      * @param int $idmail
41:      * @param array $recipient
42:      * @param bool $success
43:      * @param string $exception
44:      * @return cApiMailLogSuccess
45:      */
46:     public function create($idmail, $recipient, $success, $exception) {
47:         $item = $this->createNewItem();
48: 
49:         $item->set('idmail', $idmail);
50:         $item->set('recipient', json_encode($recipient));
51:         $item->set('success', $success);
52:         $item->set('exception', $exception);
53: 
54:         $item->store();
55: 
56:         return $item;
57:     }
58: }
59: 
60: /**
61:  * Mail log success item
62:  *
63:  * @package Core
64:  * @subpackage GenericDB_Model
65:  */
66: class cApiMailLogSuccess extends Item {
67: 
68:     /**
69:      * Constructor
70:      *
71:      * @param mixed $mId
72:      */
73:     public function __construct($mId = false) {
74:         global $cfg;
75:         parent::__construct($cfg['tab']['mail_log_success'], 'idmailsuccess');
76:         $this->setFilters(array(), array());
77:         if ($mId !== false) {
78:             $this->loadByPrimaryKey($mId);
79:         }
80:     }
81: }
82: 
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen