CVS update: /cowiki/includes/cowiki/class/dao/

[email protected] 2 May 2005 23:15:01 -0000
Newsgroups gmane.comp.php.cowiki.cvs
Message-ID <[email protected]>
User: dgorski 
Date: 2005/05/02 16:15:01

Modified:
   cowiki/includes/cowiki/class/dao/class.StorageMySQLi.php
   cowiki/includes/cowiki/class/dao/class.StorageMySQL.php

Log:
 Added STORAGE_CONTAINER_NAME (private variabe, not constant)

File Changes:

Directory: /cowiki/includes/cowiki/class/dao/
=============================================

File [changed]: class.StorageMySQLi.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/class/dao/class.StorageMySQLi.php?r1=1.8&r2=1.9
Delta lines:  +6 -2
-------------------
--- class.StorageMySQLi.php	2 May 2005 03:33:46 -0000	1.8
+++ class.StorageMySQLi.php	2 May 2005 23:14:58 -0000	1.9
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.StorageMySQLi.php,v 1.8 2005/05/02 03:33:46 dgorski Exp $
+ * $Id: class.StorageMySQLi.php,v 1.9 2005/05/02 23:14:58 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -17,7 +17,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.8 $
+ * @version     $Revision: 1.9 $
  *
  */
 
@@ -39,6 +39,10 @@
  * @todo        [D11N]  Complete documentation
  */
 class StorageMySQLi extends StorageMySQL {
+
+    private $STORAGE_CONTAINER_NAME = 'MySQLi';
+
+    // --------------------------------------------------------------------
 
     /**
      * Class constructor. Overwrite the parent method.

File [changed]: class.StorageMySQL.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/class/dao/class.StorageMySQL.php?r1=1.27&r2=1.28
Delta lines:  +19 -2
--------------------
--- class.StorageMySQL.php	2 May 2005 03:33:46 -0000	1.27
+++ class.StorageMySQL.php	2 May 2005 23:14:59 -0000	1.28
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.StorageMySQL.php,v 1.27 2005/05/02 03:33:46 dgorski Exp $
+ * $Id: class.StorageMySQL.php,v 1.28 2005/05/02 23:14:59 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -17,7 +17,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.27 $
+ * @version     $Revision: 1.28 $
  *
  */
 
@@ -38,6 +38,8 @@
  */
 class StorageMySQL extends Object {
 
+    private $STORAGE_CONTAINER_NAME = 'MySQL';
+
     protected
         $rLink = null,
         $rResult = null,
@@ -531,6 +533,21 @@
                  );
 
         return $aData['version'];
+    }
+
+    // --------------------------------------------------------------------
+
+    /**
+     * Returns the name of the underlying database / storage container
+     *
+     * @access  public
+     * @return  string
+     *
+     * @author  Daniel T. Gorski, <[email protected]>
+     * @since   coWiki 0.4.0
+     */
+    public function getStorageName() {
+        return $this->STORAGE_CONTAINER_NAME;
     }
 
 } // of class