Skip to content

Commit 6a3556c

Browse files
author
Daniel Kinzler
committed
gpPageSet.size()
git-svn-id: https://svn.toolserver.org/svnroot/daniel/duesenstuff/trunk/gpClient@547 9f2c43bc-b3c0-43f4-b155-41619b16f219
1 parent d6682cd commit 6a3556c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

php/gpMediaWiki.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,11 @@ public function remove_page_id( $id ) {
443443
$this->query($sql);
444444
return true;
445445
}
446+
447+
public function size() { #TODO: port to python
448+
$sql = "SELECT count(*) FROM " . $this->table;
449+
return $this->glue->mysql_query_value($sql);
450+
}
446451

447452
public function strip_namespace( $ns, $inverse = false ) {
448453
$where = array( $this->namespace_field => $ns );

0 commit comments

Comments
 (0)