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

  • Newsletter
  • NewsletterCollection
  • NewsletterJob
  • NewsletterJobCollection
  • NewsletterLog
  • NewsletterLogCollection
  • NewsletterRecipient
  • NewsletterRecipientCollection
  • NewsletterRecipientGroup
  • NewsletterRecipientGroupCollection
  • NewsletterRecipientGroupMember
  • NewsletterRecipientGroupMemberCollection
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class Newsletter

Single Newsletter Item

cGenericDb
Extended by cItemBaseAbstract
Extended by Item
Extended by Newsletter
Package: Plugin\Newsletter
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Bjoern Behrens
Located at plugins/newsletter/classes/class.newsletter.php
Methods summary
public
# __construct( mixed $mId = false )

Constructor Function

Constructor Function

Parameters

$mId
Specifies the ID of item to load

Throws

cInvalidArgumentException
If table name or primary key is not set

Overrides

Item::__construct()
public boolean
# store( )

Overriden store()-Method to set modified and modifiedby data and to ensure, that there is only one welcome newsletter

Overriden store()-Method to set modified and modifiedby data and to ensure, that there is only one welcome newsletter

Returns

boolean

Overrides

Item::store()
public boolean
# setField( string $name, mixed $value, boolean $bSafe = true )

Userdefined setter for newsletter fields.

Userdefined setter for newsletter fields.

Parameters

$name
$value
$bSafe
Flag to run defined inFilter on passed value

Returns

boolean

Overrides

Item::setField()
public
# _replaceTag( string & $sCode, boolean $bIsHTML, string $sField, string $sData )

Replaces newsletter tag (e.g. MAIL_NAME) with data. If code is just text using str_replace; if it is HTML by using regular expressions

Replaces newsletter tag (e.g. MAIL_NAME) with data. If code is just text using str_replace; if it is HTML by using regular expressions

Parameters

$sCode
Code, where the tags will be replaced (by reference)
$bIsHTML
Is code HTML?
$sField
Field name, without MAIL_ (e.g. just "name")
$sData
Data
protected
# _getNewsletterTagData( $sHTML, $sTag )
protected
# _deChunkHTTPBody( $sHeader, $sBody, $sEOL = "\r\n" )
public string
# getHTMLMessage( )

If newsletter is HTML newsletter and necessary data available returns final HTML message

If newsletter is HTML newsletter and necessary data available returns final HTML message

Returns

string
HTML message
public boolean
# htmlArticleExists( )

Checks, if html newsletter article still exists

Checks, if html newsletter article still exists

Returns

boolean
public
# sendEMail( integer $iIDCatArt, string $sEMail, string $sName = "", boolean $bSimulatePlugins = true, string $sEncoding = "iso-8859-1" )

Sends test newsletter directly to specified email address

Sends test newsletter directly to specified email address

Parameters

$iIDCatArt
idcatart of newsletter handler article
$sEMail
Recipient email address
$sName
Optional: Recipient name
$bSimulatePlugins

$bSimulatePlugin If recipient plugin activated, include plugins and simulate values from plugins

$sEncoding
Message (and header) encoding, e.g. iso-8859-1
public
# sendDirect( integer $iIDCatArt, integer $iIDNewsRcp, integer $iIDNewsGroup, array & $aSendRcps, string $sEncoding = "iso-8859-1" )

Sends test newsletter directly to specified recipients (single or group)

Sends test newsletter directly to specified recipients (single or group)

Note: Sending in chunks not supported! Only usable for tests and only a few recipients.

Parameters

$iIDCatArt
idcatart of newsletter handler article
$iIDNewsRcp
If specified, newsletter recipient id, ignored, if group specified
$iIDNewsGroup
If specified, newsletter recipient group id
$aSendRcps
As reference: Filled with a list of succesfull recipients
$sEncoding
Message (and header) encoding, e.g. iso-8859-1
Methods inherited from Item
_inFilter(), _loadByWhereClause(), _onLoad(), _resetItem(), _setMetaObject(), deleteProperty(), deletePropertyById(), get(), getField(), getMetaObject(), getProperty(), isLoaded(), loadBy(), loadByMany(), loadByPrimaryKey(), loadByRecordSet(), outFilter(), set(), setFilters(), setProperty(), toArray(), toObject()
Methods inherited from cItemBaseAbstract
_getPropertiesCollectionInstance(), _getSecondDBInstance(), escape()
Methods inherited from cGenericDb
_executeCallbacks(), register(), unregister()
Constants inherited from cGenericDb
CREATE_BEFORE, CREATE_FAILURE, CREATE_SUCCESS, DELETE_BEFORE, DELETE_FAILURE, DELETE_SUCCESS, STORE_BEFORE, STORE_FAILURE, STORE_SUCCESS
Properties summary
public string $_sError

Error storage

Error storage

#
Properties inherited from Item
$_arrInFilters, $_arrOutFilters, $_lastSQL, $_metaObject, $modifiedValues, $oldPrimaryKey, $values
Properties inherited from cItemBaseAbstract
$_className, $_oCache, $_settings, $db, $lasterror, $primaryKey, $properties, $secondDb, $table, $virgin
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen