1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-26 23:44:24 +02:00
This commit is contained in:
David Grudl
2010-02-24 07:33:16 +01:00
parent dbe79ae57b
commit 0b9562497f
13 changed files with 30 additions and 33 deletions

View File

@@ -33,26 +33,32 @@ if (version_compare(PHP_VERSION, '5.2.0', '<')) {
* Compatibility with Nette
*/
if (!class_exists('NotImplementedException', FALSE)) {
/** @package exceptions */
class NotImplementedException extends LogicException {}
}
if (!class_exists('NotSupportedException', FALSE)) {
/** @package exceptions */
class NotSupportedException extends LogicException {}
}
if (!class_exists('MemberAccessException', FALSE)) {
/** @package exceptions */
class MemberAccessException extends LogicException {}
}
if (!class_exists('InvalidStateException', FALSE)) {
/** @package exceptions */
class InvalidStateException extends RuntimeException {}
}
if (!class_exists('IOException', FALSE)) {
/** @package exceptions */
class IOException extends RuntimeException {}
}
if (!class_exists('FileNotFoundException', FALSE)) {
/** @package exceptions */
class FileNotFoundException extends IOException {}
}
@@ -67,7 +73,7 @@ if (!class_exists('DateTime53', FALSE)) {
/**
* Back-compatibility
* @deprecated
*/
class DibiVariable extends DateTime53
{