Default.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_InfoCard
  17. * @subpackage Adapter
  18. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * Zend_InfoCard_Adapter_Interface
  24. */
  25. require_once 'Zend/InfoCard/Adapter/Interface.php';
  26. /**
  27. * The default InfoCard component Adapter which serves as a pass-thru placeholder
  28. * for developers. Initially developed to provide a callback mechanism to store and retrieve
  29. * assertions as part of the validation process it can be used anytime callback facilities
  30. * are necessary
  31. *
  32. * @category Zend
  33. * @package Zend_InfoCard
  34. * @subpackage Adapter
  35. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  36. * @license http://framework.zend.com/license/new-bsd New BSD License
  37. */
  38. class Zend_InfoCard_Adapter_Default implements Zend_InfoCard_Adapter_Interface
  39. {
  40. /**
  41. * Store the assertion (pass-thru does nothing)
  42. *
  43. * @param string $assertionURI The assertion type URI
  44. * @param string $assertionID The specific assertion ID
  45. * @param array $conditions An array of claims to store associated with the assertion
  46. * @return bool Always returns true (would return false on store failure)
  47. */
  48. public function storeAssertion($assertionURI, $assertionID, $conditions)
  49. {
  50. return true;
  51. }
  52. /**
  53. * Retrieve an assertion (pass-thru does nothing)
  54. *
  55. * @param string $assertionURI The assertion type URI
  56. * @param string $assertionID The assertion ID to retrieve
  57. * @return mixed False if the assertion ID was not found for that URI, or an array of
  58. * conditions associated with that assertion if found (always returns false)
  59. */
  60. public function retrieveAssertion($assertionURI, $assertionID)
  61. {
  62. return false;
  63. }
  64. /**
  65. * Remove an assertion (pass-thru does nothing)
  66. *
  67. * @param string $assertionURI The assertion type URI
  68. * @param string $assertionID The assertion ID to remove
  69. * @return bool Always returns true (false on removal failure)
  70. */
  71. public function removeAssertion($assertionURI, $assertionID)
  72. {
  73. return null;
  74. }
  75. }