|
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-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $ |
|
21 */ |
|
22 |
|
23 /** |
|
24 * Zend_InfoCard_Adapter_Interface |
|
25 */ |
|
26 require_once 'Zend/InfoCard/Adapter/Interface.php'; |
|
27 |
|
28 /** |
|
29 * The default InfoCard component Adapter which serves as a pass-thru placeholder |
|
30 * for developers. Initially developed to provide a callback mechanism to store and retrieve |
|
31 * assertions as part of the validation process it can be used anytime callback facilities |
|
32 * are necessary |
|
33 * |
|
34 * @category Zend |
|
35 * @package Zend_InfoCard |
|
36 * @subpackage Adapter |
|
37 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
38 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
39 */ |
|
40 class Zend_InfoCard_Adapter_Default implements Zend_InfoCard_Adapter_Interface |
|
41 { |
|
42 /** |
|
43 * Store the assertion (pass-thru does nothing) |
|
44 * |
|
45 * @param string $assertionURI The assertion type URI |
|
46 * @param string $assertionID The specific assertion ID |
|
47 * @param array $conditions An array of claims to store associated with the assertion |
|
48 * @return bool Always returns true (would return false on store failure) |
|
49 */ |
|
50 public function storeAssertion($assertionURI, $assertionID, $conditions) |
|
51 { |
|
52 return true; |
|
53 } |
|
54 |
|
55 /** |
|
56 * Retrieve an assertion (pass-thru does nothing) |
|
57 * |
|
58 * @param string $assertionURI The assertion type URI |
|
59 * @param string $assertionID The assertion ID to retrieve |
|
60 * @return mixed False if the assertion ID was not found for that URI, or an array of |
|
61 * conditions associated with that assertion if found (always returns false) |
|
62 */ |
|
63 public function retrieveAssertion($assertionURI, $assertionID) |
|
64 { |
|
65 return false; |
|
66 } |
|
67 |
|
68 /** |
|
69 * Remove an assertion (pass-thru does nothing) |
|
70 * |
|
71 * @param string $assertionURI The assertion type URI |
|
72 * @param string $assertionID The assertion ID to remove |
|
73 * @return bool Always returns true (false on removal failure) |
|
74 */ |
|
75 public function removeAssertion($assertionURI, $assertionID) |
|
76 { |
|
77 return null; |
|
78 } |
|
79 } |