Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Store the form values in the session namespace. Initialize if not set.
- * @param string $key : Key identifying information
- * @param array $values : assoc array of key/value pairs
- * @return void
- */
- public function storeFormValues($key,array $values) {
- $key = (string) $key;
- if (!isset($this->getSessionNamespace()->{$this->_livepdqSessionKey})) {
- $this->getSessionNamespace()->{$this->_livepdqSessionKey} = base64_encode(serialize(array()));
- }
- $tempAr = unserialize(base64_decode($this->getSessionNamespace()->{$this->_livepdqSessionKey}));
- $tempAr[$key] = $values;
- $this->getSessionNamespace()->{$this->_livepdqSessionKey} = base64_encode(serialize($tempAr));
- }
Add Comment
Please, Sign In to add comment