From: Andrey Kutejko Date: Wed, 20 Aug 2014 23:48:11 +0000 (+0300) Subject: cleanup X-Git-Tag: 0.6~178 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=63b67fbcaa14ed647a3a7a6794447271433498f3;p=ipf.git cleanup --- diff --git a/ipf/legacy_orm/orm/exception/orm.php b/ipf/legacy_orm/orm/exception/orm.php deleted file mode 100644 index d7d84e9..0000000 --- a/ipf/legacy_orm/orm/exception/orm.php +++ /dev/null @@ -1,50 +0,0 @@ - 'unknown error', - IPF_ORM::ERR_ALREADY_EXISTS => 'already exists', - IPF_ORM::ERR_CANNOT_CREATE => 'can not create', - IPF_ORM::ERR_CANNOT_ALTER => 'can not alter', - IPF_ORM::ERR_CANNOT_REPLACE => 'can not replace', - IPF_ORM::ERR_CANNOT_DELETE => 'can not delete', - IPF_ORM::ERR_CANNOT_DROP => 'can not drop', - IPF_ORM::ERR_CONSTRAINT => 'constraint violation', - IPF_ORM::ERR_CONSTRAINT_NOT_NULL=> 'null value violates not-null constraint', - IPF_ORM::ERR_DIVZERO => 'division by zero', - IPF_ORM::ERR_INVALID => 'invalid', - IPF_ORM::ERR_INVALID_DATE => 'invalid date or time', - IPF_ORM::ERR_INVALID_NUMBER => 'invalid number', - IPF_ORM::ERR_MISMATCH => 'mismatch', - IPF_ORM::ERR_NODBSELECTED => 'no database selected', - IPF_ORM::ERR_NOSUCHFIELD => 'no such field', - IPF_ORM::ERR_NOSUCHTABLE => 'no such table', - IPF_ORM::ERR_NOT_CAPABLE => 'IPF backend not capable', - IPF_ORM::ERR_NOT_FOUND => 'not found', - IPF_ORM::ERR_NOT_LOCKED => 'not locked', - IPF_ORM::ERR_SYNTAX => 'syntax error', - IPF_ORM::ERR_UNSUPPORTED => 'not supported', - IPF_ORM::ERR_VALUE_COUNT_ON_ROW => 'value count on row', - IPF_ORM::ERR_INVALID_DSN => 'invalid DSN', - IPF_ORM::ERR_CONNECT_FAILED => 'connect failed', - IPF_ORM::ERR_NEED_MORE_DATA => 'insufficient data supplied', - IPF_ORM::ERR_EXTENSION_NOT_FOUND=> 'extension not found', - IPF_ORM::ERR_NOSUCHDB => 'no such database', - IPF_ORM::ERR_ACCESS_VIOLATION => 'insufficient permissions', - IPF_ORM::ERR_LOADMODULE => 'error while including on demand module', - IPF_ORM::ERR_TRUNCATED => 'truncated', - IPF_ORM::ERR_DEADLOCK => 'deadlock detected', - ); - - public function errorMessage($value = null) - { - if (is_null($value)) { - return self::$_errorMessages; - } - - return isset(self::$_errorMessages[$value]) ? - self::$_errorMessages[$value] : self::$_errorMessages[IPF_ORM::ERR]; - } -} - diff --git a/ipf/project.php b/ipf/project.php index 4e2a595..97e253a 100644 --- a/ipf/project.php +++ b/ipf/project.php @@ -52,12 +52,6 @@ final class IPF_Project return $this->apps[$name]; } - public function checkApps() - { - foreach ($this->apps as $appname => &$app) - $this->getApp($appname); - } - public function frameworkApps() { $result = array();