Commit 863df32dea7e10176501f6ba4ef4989e320eca96
1 parent
bee203c0
Remove unused getLastQueryResultCount and getQueryString
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3013 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
0 additions
and
35 deletions
lib/database/db.inc
| @@ -59,41 +59,6 @@ class Database extends DB_Sql { | @@ -59,41 +59,6 @@ class Database extends DB_Sql { | ||
| 59 | $this->databaseType = $default->dbType; | 59 | $this->databaseType = $default->dbType; |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | - /** | ||
| 63 | - * Get the result count for the previously executed query. Meant | ||
| 64 | - * to be used in conjuction with createSSQLQueryWithOffset so that | ||
| 65 | - * the total number of results can be calculated | ||
| 66 | - * | ||
| 67 | - * @return int row count | ||
| 68 | - */ | ||
| 69 | - function & getLastQueryResultCount() { | ||
| 70 | - if (isset($this->sLastTableName)) { | ||
| 71 | - $sCountResultQuery = "SELECT COUNT(*) AS ResultCount FROM " . $this->sLastTableName; | ||
| 72 | - | ||
| 73 | - if (isset($this->sLastWhereClause)) { | ||
| 74 | - sCountResultQuery . " WHERE " . $this->sLastWhereClause; | ||
| 75 | - } | ||
| 76 | - $this->query($sCountResultQuery); | ||
| 77 | - $this->next_record(); | ||
| 78 | - return $this->f("ResultCount"); | ||
| 79 | - } else { | ||
| 80 | - return 0; | ||
| 81 | - } | ||
| 82 | - } | ||
| 83 | - | ||
| 84 | - /** | ||
| 85 | - * Execute the query and return the results | ||
| 86 | - * | ||
| 87 | - * @returns Results of query | ||
| 88 | - */ | ||
| 89 | - function & getQueryResults() { | ||
| 90 | - $result = null; | ||
| 91 | - if (isset($this->sQuery)) { | ||
| 92 | - $result = $this->query($this->sQuery); | ||
| 93 | - } | ||
| 94 | - return $result; | ||
| 95 | - } | ||
| 96 | - | ||
| 97 | /** | 62 | /** |
| 98 | * Display any database errors encountered | 63 | * Display any database errors encountered |
| 99 | */ | 64 | */ |