* @author Dennis Eichhorn * @copyright 2013 Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://orange-management.com */ namespace phpOMS\DataStorage\Database; use phpOMS\Datatypes\Enum; /** * Database status enum. * * Possible database connection status * * @category Framework * @package phpOMS\DataStorage\Database * @author OMS Development Team * @author Dennis Eichhorn * @license OMS License 1.0 * @link http://orange-management.com * @since 1.0.0 */ abstract class DatabaseStatus extends Enum { const OK = 0; /* Database connection successful */ const MISSING_DATABASE = 1; /* Couldn't find database */ const MISSING_TABLE = 2; /* One of the core tables couldn't be found */ const FAILURE = 3; /* Unknown failure */ const READONLY = 4; /* Database connection is in readonly (but ok) */ const CLOSED = 5; /* Database connection closed */ }