Permalink
Browse files

updated phpdocs/license comments (closes #14)

  • Loading branch information...
1 parent 18bf40e commit db6a1b525e5e99bba44457dde551846c7f62d590 @kbond kbond committed Feb 21, 2012
Showing with 510 additions and 1,109 deletions.
  1. +10 −1 autoload.php
  2. +7 −41 src/Stash/Box.php
  3. +7 −41 src/Stash/Cache.php
  4. +10 −40 src/Stash/Exception/Exception.php
  5. +10 −40 src/Stash/Exception/FileSystemException.php
  6. +10 −40 src/Stash/Exception/ManagerException.php
  7. +10 −40 src/Stash/Exception/MemcacheException.php
  8. +10 −40 src/Stash/Exception/MulitHandlerException.php
  9. +10 −40 src/Stash/Exception/SqliteException.php
  10. +10 −40 src/Stash/Exception/XcacheException.php
  11. +6 −42 src/Stash/Handler/Apc.php
  12. +6 −42 src/Stash/Handler/Ephemeral.php
  13. +7 −42 src/Stash/Handler/FileSystem.php
  14. +7 −41 src/Stash/Handler/HandlerInterface.php
  15. +7 −42 src/Stash/Handler/Memcache.php
  16. +7 −42 src/Stash/Handler/MultiHandler.php
  17. +7 −42 src/Stash/Handler/Sqlite.php
  18. +10 −41 src/Stash/Handler/Sub/Memcache.php
  19. +10 −41 src/Stash/Handler/Sub/Memcached.php
  20. +10 −41 src/Stash/Handler/Sub/Sqlite.php
  21. +10 −41 src/Stash/Handler/Sub/SqlitePdo.php
  22. +10 −41 src/Stash/Handler/Sub/SqlitePdo2.php
  23. +12 −40 src/Stash/Handler/UsableInterface.php
  24. +8 −42 src/Stash/Handler/Xcache.php
  25. +7 −41 src/Stash/Handlers.php
  26. +7 −41 src/Stash/Manager.php
  27. +7 −41 src/Stash/Utilities.php
  28. +12 −0 tests/Stash/Test/AbstractCacheTest.php
  29. +13 −0 tests/Stash/Test/BoxTest.php
  30. +13 −0 tests/Stash/Test/CacheExceptionTest.php
  31. +13 −0 tests/Stash/Test/CacheMemOnlyTest.php
  32. +13 −0 tests/Stash/Test/CacheTest.php
  33. +8 −42 tests/Stash/Test/Exception/ExceptionTest.php
  34. +9 −0 tests/Stash/Test/Exception/TestException.php
  35. +13 −0 tests/Stash/Test/Handler/AbstractHandlerTest.php
  36. +13 −0 tests/Stash/Test/Handler/ApcTest.php
  37. +13 −0 tests/Stash/Test/Handler/EphemeralTest.php
  38. +13 −0 tests/Stash/Test/Handler/FileSystemTest.php
  39. +13 −0 tests/Stash/Test/Handler/MemcacheTest.php
  40. +13 −0 tests/Stash/Test/Handler/MemcachedTest.php
  41. +13 −0 tests/Stash/Test/Handler/MultiHandlerTest.php
  42. +13 −0 tests/Stash/Test/Handler/SqlitePdoSqlite2Test.php
  43. +13 −0 tests/Stash/Test/Handler/SqlitePdoSqlite3Test.php
  44. +13 −0 tests/Stash/Test/Handler/SqliteSqlite2Test.php
  45. +9 −0 tests/Stash/Test/Handler/XcacheTest.php
  46. +13 −0 tests/Stash/Test/HandlersTest.php
  47. +13 −1 tests/Stash/Test/ManagerTest.php
  48. +13 −0 tests/Stash/Test/UtilitiesTest.php
  49. +10 −0 tests/bootstrap.php
  50. +9 −0 tests/travis.setup.php
View
11 autoload.php
@@ -1,10 +1,19 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
spl_autoload_register(function($class)
{
$file = __DIR__.'/src/'.strtr($class, '\\', '/').'.php';
if (file_exists($file)) {
require $file;
return true;
}
-});
+});
View
48 src/Stash/Box.php
@@ -1,46 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash;
@@ -53,7 +19,7 @@
* with one handler at a time, so systems with multiple cache pools will want to use the StashManager class instead.
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
*/
class Box
{
View
48 src/Stash/Cache.php
@@ -1,46 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash;
@@ -155,7 +121,7 @@
*
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
*/
class Cache
{
View
50 src/Stash/Exception/Exception.php
@@ -1,50 +1,20 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Exception;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class Exception extends \Exception
{
}
View
50 src/Stash/Exception/FileSystemException.php
@@ -1,50 +1,20 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Exception;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class FileSystemException extends Exception
{
}
View
50 src/Stash/Exception/ManagerException.php
@@ -1,50 +1,20 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Exception;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class ManagerException extends Exception
{
}
View
50 src/Stash/Exception/MemcacheException.php
@@ -1,50 +1,20 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Exception;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class MemcacheException extends Exception
{
}
View
50 src/Stash/Exception/MulitHandlerException.php
@@ -1,50 +1,20 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Exception;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class MulitHandlerException extends Exception
{
}
View
50 src/Stash/Exception/SqliteException.php
@@ -1,50 +1,20 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Exception;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class SqliteException extends Exception
{
}
View
50 src/Stash/Exception/XcacheException.php
@@ -1,50 +1,20 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Exception;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class XcacheException extends Exception
{
}
View
48 src/Stash/Handler/Apc.php
@@ -1,48 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler;
@@ -53,7 +17,7 @@
* The StashApc is a wrapper for the APC extension, which allows developers to store data in memory.
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
*/
class Apc implements HandlerInterface
{
View
48 src/Stash/Handler/Ephemeral.php
@@ -1,48 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler;
@@ -54,7 +18,7 @@
* test Stash without having to worry about underlying problems interfering.
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
*/
class Ephemeral implements HandlerInterface
{
View
49 src/Stash/Handler/FileSystem.php
@@ -1,47 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler;
@@ -55,7 +20,7 @@
* benefits from php opcode caches like APC and xcache.
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
*/
class FileSystem implements HandlerInterface
{
View
48 src/Stash/Handler/HandlerInterface.php
@@ -1,46 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler;
@@ -71,7 +37,7 @@
*
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
*/
interface HandlerInterface extends UsableInterface
View
49 src/Stash/Handler/Memcache.php
@@ -1,47 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler;
@@ -56,7 +21,7 @@
* extensions and allows access to all of their options as well as all Stash features (including hierarchical caching).
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
*/
class Memcache implements HandlerInterface
{
View
49 src/Stash/Handler/MultiHandler.php
@@ -1,47 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler;
@@ -55,7 +20,7 @@
* limits placed on how many handlers can be staggered.
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
*/
class MultiHandler implements HandlerInterface
{
View
49 src/Stash/Handler/Sqlite.php
@@ -1,47 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler;
@@ -55,7 +20,7 @@
* at once.
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
*/
class Sqlite implements HandlerInterface
{
View
51 src/Stash/Handler/Sub/Memcache.php
@@ -1,51 +1,20 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler\Sub;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class Memcache extends Memcached
{
public function initialize($servers, $options = array())
View
51 src/Stash/Handler/Sub/Memcached.php
@@ -1,54 +1,23 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler\Sub;
use Stash\Exception\MemcacheException;
use Stash\Handler\UsableInterface;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class Memcached implements UsableInterface
{
/**
View
51 src/Stash/Handler/Sub/Sqlite.php
@@ -1,54 +1,23 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler\Sub;
use Stash\Exception\SqliteException;
use Stash\Handler\UsableInterface;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class Sqlite implements UsableInterface
{
protected $path;
View
51 src/Stash/Handler/Sub/SqlitePdo.php
@@ -1,53 +1,22 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler\Sub;
use Stash\Exception\SqliteException;
+/**
+* @package Stash
+* @author Robert Hafner <tedivm@tedivm.com>
+ */
class SqlitePdo extends Sqlite
{
public function __construct($path, $directoryPermissiom, $filePermission, $busyTimeout)
View
51 src/Stash/Handler/Sub/SqlitePdo2.php
@@ -1,53 +1,22 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler\Sub;
use Stash\Exception\SqliteException;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class SqlitePdo2 extends SqlitePdo
{
public function canEnable()
View
52 src/Stash/Handler/UsableInterface.php
@@ -1,50 +1,22 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler;
+/**
+ * Interface for Handlers and Sub-Handlers to allow for checking if enabled in current environment
+ *
+ * @package Stash
+ * @author Kevin Bond <kevinbond@gmail.com>
+ */
interface UsableInterface
{
/**
View
50 src/Stash/Handler/Xcache.php
@@ -1,47 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Handler;
@@ -54,7 +19,8 @@
* StashSqlite is a wrapper around the xcache php extension, which allows developers to store data in memory.
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
+ *
* @codeCoverageIgnore Just until I figure out how to get phpunit working over http, or xcache over cli
*/
class Xcache extends Apc
View
48 src/Stash/Handlers.php
@@ -1,46 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash;
@@ -49,7 +15,7 @@
* Handlers contains various functions used to organize Handler classes that are available in the system.
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
*/
class Handlers
{
View
48 src/Stash/Manager.php
@@ -1,46 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash;
@@ -53,7 +19,7 @@
* steps. Unlike the StashBox class StashManager can work with multiple distinct cache pools.
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
*/
class Manager
{
View
48 src/Stash/Utilities.php
@@ -1,46 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash;
@@ -52,7 +18,7 @@
* StashUtilities contains static functions used throughout the Stash project, both by core classes and handlers.
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
*/
class Utilities
{
View
12 tests/Stash/Test/AbstractCacheTest.php
@@ -1,12 +1,24 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test;
use Stash\Cache;
use Stash\Utilities;
use Stash\Handler\Ephemeral;
/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ *
* @todo find out why this has to be abstract to work (see https://github.com/tedivm/Stash/pull/10)
*/
abstract class AbstractCacheTest extends \PHPUnit_Framework_TestCase
View
13 tests/Stash/Test/BoxTest.php
@@ -1,10 +1,23 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test;
use Stash\Box;
use Stash\Handler\Ephemeral;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class BoxTest extends \PHPUnit_Framework_TestCase
{
protected $data = array(array('test', 'test'));
View
13 tests/Stash/Test/CacheExceptionTest.php
@@ -1,10 +1,23 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test;
use Stash\Test\Exception\ExceptionTest;
use Stash\Cache;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class CacheExceptionTest extends \PHPUnit_Framework_TestCase
{
public function testStore()
View
13 tests/Stash/Test/CacheMemOnlyTest.php
@@ -1,9 +1,22 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test;
use Stash\Cache;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class CacheMemOnlyTest extends AbstractCacheTest
{
View
13 tests/Stash/Test/CacheTest.php
@@ -1,11 +1,24 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test;
use Stash\Cache;
use Stash\Utilities;
use Stash\Handler\Ephemeral;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class CacheTest extends AbstractCacheTest
{
}
View
50 tests/Stash/Test/Exception/ExceptionTest.php
@@ -1,47 +1,12 @@
<?php
-/**
- * Stash
- *
- * Copyright (c) 2009-2011, Robert Hafner <tedivm@tedivm.com>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- *
- * * Neither the name of Robert Hafner nor the names of his
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
+
+/*
+ * This file is part of the Stash package.
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * (c) Robert Hafner <tedivm@tedivm.com>
*
- * @package Stash
- * @subpackage Handlers
- * @author Robert Hafner <tedivm@tedivm.com>
- * @copyright 2009-2011 Robert Hafner <tedivm@tedivm.com>
- * @license http://www.opensource.org/licenses/bsd-license.php BSD License
- * @link http://code.google.com/p/stash/
- * @since File available since Release 0.9.1
- * @version Release: 0.9.5
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
namespace Stash\Test\Exception;
@@ -54,7 +19,8 @@
* an exception.
*
* @package Stash
- * @author Robert Hafner <tedivm@tedivm.com>
+ * @author Robert Hafner <tedivm@tedivm.com>
+ *
* @codeCoverageIgnore
*/
class ExceptionTest implements HandlerInterface
View
9 tests/Stash/Test/Exception/TestException.php
@@ -1,5 +1,14 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test\Exception;
use Stash\Exception\Exception;
View
13 tests/Stash/Test/Handler/AbstractHandlerTest.php
@@ -1,9 +1,22 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test\Handler;
use Stash\Utilities;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
abstract class AbstractHandlerTest extends \PHPUnit_Framework_TestCase
{
protected $data = array('string' => 'Hello world!',
View
13 tests/Stash/Test/Handler/ApcTest.php
@@ -1,7 +1,20 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test\Handler;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class ApcTest extends AbstractHandlerTest
{
protected $handlerClass = 'Stash\Handler\Apc';
View
13 tests/Stash/Test/Handler/EphemeralTest.php
@@ -1,7 +1,20 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test\Handler;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class EphemeralTest extends AbstractHandlerTest
{
protected $handlerClass = 'Stash\Handler\Ephemeral';
View
13 tests/Stash/Test/Handler/FileSystemTest.php
@@ -1,7 +1,20 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test\Handler;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class StashFileSystemTest extends AbstractHandlerTest
{
protected $handlerClass = 'Stash\Handler\FileSystem';
View
13 tests/Stash/Test/Handler/MemcacheTest.php
@@ -1,10 +1,23 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test\Handler;
use Stash\Handler\Memcache;
use Stash\Cache;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class MemcacheTest extends AbstractHandlerTest
{
protected $handlerClass = 'Stash\Handler\Memcache';
View
13 tests/Stash/Test/Handler/MemcachedTest.php
@@ -1,7 +1,20 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test\Handler;
+/**
+ * @package Stash
+ * @author Robert Hafner <tedivm@tedivm.com>
+ */
class MemcachedTest extends MemcacheTest
{
protected $extension = 'memcached';
View
13 tests/Stash/Test/Handler/MultiHandlerTest.php
@@ -1,9 +1,22 @@
<?php
+/*
+ * This file is part of the Stash package.
+ *
+ * (c) Robert Hafner <tedivm@tedivm.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
namespace Stash\Test\Handler;
use Stash\Handler\Ephemeral;
+