Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
/*
4
 * This file is part of SwiftMailer.
5
 * (c) 2004-2009 Chris Corbyn
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
 
11
//@require 'Swift/KeyCache.php';
12
//@require 'Swift/KeyCacheInputStream.php';
13
//@require 'Swift/InputByteStream.php';
14
//@require 'Swift/OutputByteStrean.php';
15
 
16
/**
17
 * A null KeyCache that does not cache at all.
18
 * @package Swift
19
 * @subpackage KeyCache
20
 * @author Chris Corbyn
21
 */
22
class Swift_KeyCache_NullKeyCache implements Swift_KeyCache
23
{
24
 
25
  /**
26
   * Set a string into the cache under $itemKey for the namespace $nsKey.
27
   * @param string $nsKey
28
   * @param string $itemKey
29
   * @param string $string
30
   * @param int $mode
31
   * @see MODE_WRITE, MODE_APPEND
32
   */
33
  public function setString($nsKey, $itemKey, $string, $mode)
34
  {
35
  }
36
 
37
  /**
38
   * Set a ByteStream into the cache under $itemKey for the namespace $nsKey.
39
   * @param string $nsKey
40
   * @param string $itemKey
41
   * @param Swift_OutputByteStream $os
42
   * @param int $mode
43
   * @see MODE_WRITE, MODE_APPEND
44
   */
45
  public function importFromByteStream($nsKey, $itemKey, Swift_OutputByteStream $os,
46
    $mode)
47
  {
48
  }
49
 
50
  /**
51
   * Provides a ByteStream which when written to, writes data to $itemKey.
52
   * NOTE: The stream will always write in append mode.
53
   * @param string $nsKey
54
   * @param string $itemKey
55
   * @return Swift_InputByteStream
56
   */
57
  public function getInputByteStream($nsKey, $itemKey,
58
    Swift_InputByteStream $writeThrough = null)
59
  {
60
  }
61
 
62
  /**
63
   * Get data back out of the cache as a string.
64
   * @param string $nsKey
65
   * @param string $itemKey
66
   * @return string
67
   */
68
  public function getString($nsKey, $itemKey)
69
  {
70
  }
71
 
72
  /**
73
   * Get data back out of the cache as a ByteStream.
74
   * @param string $nsKey
75
   * @param string $itemKey
76
   * @param Swift_InputByteStream $is to write the data to
77
   */
78
  public function exportToByteStream($nsKey, $itemKey, Swift_InputByteStream $is)
79
  {
80
  }
81
 
82
  /**
83
   * Check if the given $itemKey exists in the namespace $nsKey.
84
   * @param string $nsKey
85
   * @param string $itemKey
86
   * @return boolean
87
   */
88
  public function hasKey($nsKey, $itemKey)
89
  {
90
    return false;
91
  }
92
 
93
  /**
94
   * Clear data for $itemKey in the namespace $nsKey if it exists.
95
   * @param string $nsKey
96
   * @param string $itemKey
97
   */
98
  public function clearKey($nsKey, $itemKey)
99
  {
100
  }
101
 
102
  /**
103
   * Clear all data in the namespace $nsKey if it exists.
104
   * @param string $nsKey
105
   */
106
  public function clearAll($nsKey)
107
  {
108
  }
109
 
110
}