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_Attachment
  • Swift_EmbeddedFile
  • Swift_Image
  • Swift_Message
  • Swift_Mime_Attachment
  • Swift_Mime_ContentEncoder_Base64ContentEncoder
  • Swift_Mime_ContentEncoder_NativeQpContentEncoder
  • Swift_Mime_ContentEncoder_PlainContentEncoder
  • Swift_Mime_ContentEncoder_QpContentEncoder
  • Swift_Mime_EmbeddedFile
  • Swift_Mime_Grammar
  • Swift_Mime_HeaderEncoder_Base64HeaderEncoder
  • Swift_Mime_HeaderEncoder_QpHeaderEncoder
  • Swift_Mime_Headers_AbstractHeader
  • Swift_Mime_Headers_DateHeader
  • Swift_Mime_Headers_IdentificationHeader
  • Swift_Mime_Headers_MailboxHeader
  • Swift_Mime_Headers_ParameterizedHeader
  • Swift_Mime_Headers_PathHeader
  • Swift_Mime_Headers_UnstructuredHeader
  • Swift_Mime_MimePart
  • Swift_Mime_SimpleHeaderFactory
  • Swift_Mime_SimpleHeaderSet
  • Swift_Mime_SimpleMessage
  • Swift_Mime_SimpleMimeEntity
  • Swift_MimePart

Interfaces

  • Swift_Mime_CharsetObserver
  • Swift_Mime_ContentEncoder
  • Swift_Mime_EncodingObserver
  • Swift_Mime_Header
  • Swift_Mime_HeaderEncoder
  • Swift_Mime_HeaderFactory
  • Swift_Mime_HeaderSet
  • Swift_Mime_Message
  • Swift_Mime_MimeEntity
  • Swift_Mime_ParameterizedHeader
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class Swift_Mime_Grammar

Defines the grammar to use for validation, implements the RFC 2822 (and friends) ABNF grammar definitions.

Package: Swift\Mime
Author: Fabien Potencier
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Mime/Grammar.php
Methods summary
public
# __construct( )

Initialize some RFC 2822 (and friends) ABNF grammar definitions.

Initialize some RFC 2822 (and friends) ABNF grammar definitions.

public
# __wakeup( )
protected
# init( )
public string
# getDefinition( string $name )

Get the grammar defined for $name token.

Get the grammar defined for $name token.

Parameters

$name
execatly as written in the RFC

Returns

string
public array
# getGrammarDefinitions( )

Returns the tokens defined in RFC 2822 (and some related RFCs).

Returns the tokens defined in RFC 2822 (and some related RFCs).

Returns

array
public array
# getSpecials( )

Returns the current special characters used in the syntax which need to be escaped.

Returns the current special characters used in the syntax which need to be escaped.

Returns

array
public string
# escapeSpecials( string $token, string[] $include = array(), string[] $exclude = array() )

Escape special characters in a string (convert to quoted-pairs).

Escape special characters in a string (convert to quoted-pairs).

Parameters

$token
$include
additonal chars to escape
$exclude
chars from escaping

Returns

string
Properties summary
private static string[] $_specials

Special characters used in the syntax which need to be escaped.

Special characters used in the syntax which need to be escaped.

# array()
private static string[] $_grammar

Tokens defined in RFC 2822 (and some related RFCs).

Tokens defined in RFC 2822 (and some related RFCs).

# array()
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen