Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

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
  • Tree
  • Deprecated
  • Todo

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 wa-system/vendors/swift/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
Swift_KeyCache_KeyCacheInputStream
$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
string
$nsKey
$itemKey
string
$itemKey
$string
string
$string
$mode
integer
$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
string
$nsKey
$itemKey
string
$itemKey
$os
Swift_OutputByteStream
$os
$mode
integer
$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.

Provides a ByteStream which when written to, writes data to $itemKey.

NOTE: The stream will always write in append mode.

Parameters

$nsKey
string
$nsKey
$itemKey
string
$itemKey
$writeThrough
Swift_InputByteStream
$writeThrough

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
string
$nsKey
$itemKey
string
$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
string
$nsKey
$itemKey
string
$itemKey
$is
Swift_InputByteStream
$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
string
$nsKey
$itemKey
string
$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
string
$nsKey
$itemKey
string
$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
string
$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
string
$nsKey
Constants inherited from Swift_KeyCache
MODE_APPEND, MODE_WRITE
Properties summary
private array $_contents array()
#

Cache contents.

Cache contents.

private Swift_KeyCache_KeyCacheInputStream $_stream
#

An InputStream for cloning.

An InputStream for cloning.

My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0