@@ 102-120 (lines=19) @@ | ||
99 | * |
|
100 | * @throws \Comodojo\Exception\CookieException |
|
101 | */ |
|
102 | public static function retrieve($name) { |
|
103 | ||
104 | try { |
|
105 | ||
106 | $class = get_called_class(); |
|
107 | ||
108 | $cookie = new $class($name); |
|
109 | ||
110 | $return = $cookie->load(); |
|
111 | ||
112 | } catch (CookieException $ce) { |
|
113 | ||
114 | throw $ce; |
|
115 | ||
116 | } |
|
117 | ||
118 | return $return; |
|
119 | ||
120 | } |
|
121 | ||
122 | } |
|
123 |
@@ 159-177 (lines=19) @@ | ||
156 | * |
|
157 | * @throws \Comodojo\Exception\CookieException |
|
158 | */ |
|
159 | public static function retrieve($name, $key) { |
|
160 | ||
161 | try { |
|
162 | ||
163 | $class = get_called_class(); |
|
164 | ||
165 | $cookie = new $class($name, $key); |
|
166 | ||
167 | $return = $cookie->load(); |
|
168 | ||
169 | } catch (CookieException $ce) { |
|
170 | ||
171 | throw $ce; |
|
172 | ||
173 | } |
|
174 | ||
175 | return $return; |
|
176 | ||
177 | } |
|
178 | ||
179 | /** |
|
180 | * Hash the key to generate a valid aes key value |