]> git.mxchange.org Git - core.git/blobdiff - inc/classes/interfaces/database/class_DatabaseWrapper.php
Added some new stuff.
[core.git] / inc / classes / interfaces / database / class_DatabaseWrapper.php
index 687affecd0c3b268b344baf4ff2822d03666cab0..039622568499e34a25059e318a520899127889ac 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -53,7 +53,7 @@ interface DatabaseWrapper extends FrameworkInterface {
         * @param       $onlyKeys                       Only use these keys for a cache key
         * @return      $numRows                        Numbers of rows of database entries
         */
-       function doSelectCountByCriteria(Criteria $criteriaInstance, $onlyKeys =  array());
+       function doSelectCountByCriteria(Criteria $criteriaInstance, $onlyKeys = array());
 
        /**
         * Getter for primary key used in wrapped table
@@ -61,6 +61,13 @@ interface DatabaseWrapper extends FrameworkInterface {
         * @return      $primaryKey             Primary key used in wrapped table
         */
        function getPrimaryKeyValue();
+
+       /**
+        * Counts total rows of this table
+        *
+        * @return      $count  Total rows of this table
+        */
+       function countTotalRows();
 }
 
 // [EOF]