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_KeyCache_ArrayKeyCache
  • Swift_KeyCache_DiskKeyCache
  • Swift_KeyCache_DummyKeyCache
  • Swift_KeyCache_NullKeyCache
  • Swift_KeyCache_SimpleKeyCacheInputStream

Interfaces

  • Swift_KeyCache
  • Swift_KeyCache_KeyCacheInputStream
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class Swift_KeyCache_ArrayKeyCache

A basic KeyCache backed by an array.

Swift_KeyCache_ArrayKeyCache implements Swift_KeyCache
Package: Swift\KeyCache
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/KeyCache/ArrayKeyCache.php
Methods summary
public
# __construct( Swift_KeyCache_KeyCacheInputStream $stream )

Create a new ArrayKeyCache with the given $stream for cloning to make InputByteStreams.

Create a new ArrayKeyCache with the given $stream for cloning to make InputByteStreams.

Parameters

$stream
public
# setString( string $nsKey, string $itemKey, string $string, integer $mode )

Set a string into the cache under $itemKey for the namespace $nsKey.

Set a string into the cache under $itemKey for the namespace $nsKey.

Parameters

$nsKey
$itemKey
$string
$mode

See

Swift_KeyCache::MODE_WRITE, Swift_KeyCache::MODE_APPEND

Implementation of

Swift_KeyCache::setString()
public
# importFromByteStream( string $nsKey, string $itemKey, Swift_OutputByteStream $os, integer $mode )

Set a ByteStream into the cache under $itemKey for the namespace $nsKey.

Set a ByteStream into the cache under $itemKey for the namespace $nsKey.

Parameters

$nsKey
$itemKey
$os
$mode

See

Swift_KeyCache::MODE_WRITE, Swift_KeyCache::MODE_APPEND

Implementation of

Swift_KeyCache::importFromByteStream()
public Swift_InputByteStream
# getInputByteStream( string $nsKey, string $itemKey, Swift_InputByteStream $writeThrough = null )

Provides a ByteStream which when written to, writes data to $itemKey. NOTE: The stream will always write in append mode.

Provides a ByteStream which when written to, writes data to $itemKey. NOTE: The stream will always write in append mode.

Parameters

$nsKey
$itemKey
$writeThrough
$is, optional

Returns

Swift_InputByteStream

Implementation of

Swift_KeyCache::getInputByteStream()
public string
# getString( string $nsKey, string $itemKey )

Get data back out of the cache as a string.

Get data back out of the cache as a string.

Parameters

$nsKey
$itemKey

Returns

string

Implementation of

Swift_KeyCache::getString()
public
# exportToByteStream( string $nsKey, string $itemKey, Swift_InputByteStream $is )

Get data back out of the cache as a ByteStream.

Get data back out of the cache as a ByteStream.

Parameters

$nsKey
$itemKey
$is
to write the data to

Implementation of

Swift_KeyCache::exportToByteStream()
public boolean
# hasKey( string $nsKey, string $itemKey )

Check if the given $itemKey exists in the namespace $nsKey.

Check if the given $itemKey exists in the namespace $nsKey.

Parameters

$nsKey
$itemKey

Returns

boolean

Implementation of

Swift_KeyCache::hasKey()
public
# clearKey( string $nsKey, string $itemKey )

Clear data for $itemKey in the namespace $nsKey if it exists.

Clear data for $itemKey in the namespace $nsKey if it exists.

Parameters

$nsKey
$itemKey

Implementation of

Swift_KeyCache::clearKey()
public
# clearAll( string $nsKey )

Clear all data in the namespace $nsKey if it exists.

Clear all data in the namespace $nsKey if it exists.

Parameters

$nsKey

Implementation of

Swift_KeyCache::clearAll()
private
# _prepareCache( string $nsKey )

Initialize the namespace of $nsKey if needed.

Initialize the namespace of $nsKey if needed.

Parameters

$nsKey
Constants inherited from Swift_KeyCache
MODE_APPEND, MODE_WRITE
Properties summary
private array $_contents

Cache contents.

Cache contents.

# array()
private Swift_KeyCache_KeyCacheInputStream $_stream

An InputStream for cloning.

An InputStream for cloning.

#
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen