Subversion Repositories oidplus

Rev

Rev 1116 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1116 Rev 1211
Line 29... Line 29...
29
         * @return string
29
         * @return string
30
         */
30
         */
31
        public abstract static function id(): string; // this is the name that is set to the configuration value OIDplus::baseConfig()->getValue('DATABASE_PLUGIN') to identify the database plugin
31
        public abstract static function id(): string; // this is the name that is set to the configuration value OIDplus::baseConfig()->getValue('DATABASE_PLUGIN') to identify the database plugin
32
 
32
 
33
        /**
33
        /**
-
 
34
         * @return bool
-
 
35
         * @throws OIDplusException
-
 
36
         */
-
 
37
        public final function isActive(): bool {
-
 
38
                return (strtolower($this->id()) == strtolower(OIDplus::baseConfig()->getValue('DATABASE_PLUGIN','')));
-
 
39
        }
-
 
40
 
-
 
41
        /**
34
         * @return OIDplusDatabaseConnection
42
         * @return OIDplusDatabaseConnection
35
         */
43
         */
36
        public abstract static function newConnection(): OIDplusDatabaseConnection;
44
        public abstract static function newConnection(): OIDplusDatabaseConnection;
37
 
45
 
38
        /**
46
        /**