12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?php
- /*
- * This file is part of the symfony package.
- * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- /**
- * sfNoStorage allows you to disable session support.
- *
- * To disable sessions, change the storage factory in config/factories.yml:
- *
- * storage:
- * class: sfNoStorage
- *
- * @package symfony
- * @subpackage storage
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- * @version SVN: $Id: sfNoStorage.class.php 9942 2008-06-27 18:00:49Z fabien $
- */
- class sfNoStorage extends sfStorage
- {
- /**
- * Reads data from this storage.
- *
- * The preferred format for a key is directory style so naming conflicts can be avoided.
- *
- * @param string $key A unique key identifying your data
- *
- * @return mixed Data associated with the key
- *
- * @throws <b>sfStorageException</b> If an error occurs while reading data from this storage
- */
- public function read($key)
- {
- return null;
- }
- /**
- * Removes data from this storage.
- *
- * The preferred format for a key is directory style so naming conflicts can be avoided.
- *
- * @param string $key A unique key identifying your data
- *
- * @return mixed Data associated with the key
- *
- * @throws <b>sfStorageException</b> If an error occurs while removing data from this storage
- */
- public function remove($key)
- {
- return null;
- }
- /**
- * Writes data to this storage.
- *
- * The preferred format for a key is directory style so naming conflicts can be avoided.
- *
- * @param string $key A unique key identifying your data
- * @param mixed $data Data associated with your key
- *
- * @throws <b>sfStorageException</b> If an error occurs while writing to this storage
- */
- public function write($key, $data)
- {
- }
- /**
- * Regenerates id that represents this storage.
- *
- * @param boolean $destroy Destroy session when regenerating?
- *
- * @return boolean True if session regenerated, false if error
- *
- */
- public function regenerate($destroy = false)
- {
- return true;
- }
- /**
- * Executes the shutdown procedure.
- *
- * @throws <b>sfStorageException</b> If an error occurs while shutting down this storage
- */
- public function shutdown()
- {
- }
- }
|