X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Finterfaces%2Fdatabase%2Fclass_DatabaseWrapper.php;h=039622568499e34a25059e318a520899127889ac;hp=4488789bf8986fd061b55364e3e772423f49456a;hb=70a00fd84fd8d07e075a3479d3475e1a8f36a772;hpb=1ee35e6d96c456b8e3499bd683f1647aa28bd501 diff --git a/inc/classes/interfaces/database/class_DatabaseWrapper.php b/inc/classes/interfaces/database/class_DatabaseWrapper.php index 4488789b..03962256 100644 --- a/inc/classes/interfaces/database/class_DatabaseWrapper.php +++ b/inc/classes/interfaces/database/class_DatabaseWrapper.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 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]