Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • components
        • events
          • default
      • controllers
      • models
    • components
      • auth
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • exchange
        • rates
          • foxrate
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
      • json
      • modules
      • net
        • http
        • net
          • amazon
            • s3
          • geo
            • ip
      • plugins
      • recaptcha
      • security
      • session
        • cart
      • settingscollection
      • upgrades
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
  • com
    • tecnick
      • tcpdf
        • blesta
          • components
            • invoice
              • templates
                • quickbooks
                  • invoice
                • templates
                  • default
  • Crypt
    • AES
    • DES
    • Hash
    • Random
    • RC4
    • Rijndael
    • RSA
    • TerraDES
  • File
    • ANSI
    • ASN1
    • X509
  • Math
    • BigInteger
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • html
      • xml
    • lib
  • Net
    • SFTP
    • SSH1
    • SSH2
  • None
  • PHP
  • PHPMailer
  • Services
    • JSON
  • 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

Class Swift_KeyCache_DiskKeyCache

A KeyCache which streams to and from disk.

Swift_KeyCache_DiskKeyCache implements Swift_KeyCache
Package: Swift\KeyCache
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/KeyCache/DiskKeyCache.php

Methods summary

public
# __construct( Swift_KeyCache_KeyCacheInputStream $stream, string $path )

Create a new DiskKeyCache with the given $stream for cloning to make InputByteStreams, and the given $path to save to.

Create a new DiskKeyCache with the given $stream for cloning to make InputByteStreams, and the given $path to save to.

Parameters

$stream
Swift_KeyCache_KeyCacheInputStream
$stream
$path
string
$path to save to
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

Throws

Swift_IoException

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

Throws

Swift_IoException

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
string
$nsKey
$itemKey
string
$itemKey
$writeThrough
Swift_InputByteStream
$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
string
$nsKey
$itemKey
string
$itemKey

Returns

string

Throws

Swift_IoException

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
private resource
# _getHandle( string $nsKey, string $itemKey, integer $position )

Get a file handle on the cache item.

Get a file handle on the cache item.

Parameters

$nsKey
string
$nsKey
$itemKey
string
$itemKey
$position
integer
$position

Returns

resource
private
# _freeHandle( mixed $nsKey, mixed $itemKey )
public
# __destruct( )

Destructor.

Destructor.

Magic methods summary

Constants summary

integer POSITION_START 0
#

Signal to place pointer at start of file

Signal to place pointer at start of file

integer POSITION_END 1
#

Signal to place pointer at end of file

Signal to place pointer at end of file

integer POSITION_CURRENT 2
#

Signal to leave pointer in whatever position it currently is

Signal to leave pointer in whatever position it currently is

Constants inherited from Swift_KeyCache

MODE_APPEND, MODE_WRITE

Properties summary

private Swift_KeyCache_KeyCacheInputStream $_stream
#

An InputStream for cloning.

An InputStream for cloning.

private string $_path
#

A path to write to.

A path to write to.

private array $_keys
#

Stored keys.

Stored keys.

private boolean $_quotes
#

Will be true if magic_quotes_runtime is turned on.

Will be true if magic_quotes_runtime is turned on.

Blesta API documentation generated by ApiGen 2.8.0