PageRenderTime 25ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 1ms

/framework/vendor/swift/lib/classes/Swift/KeyCache/NullKeyCache.php

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