Go to the documentation of this file.00001 <?php
00002
00006 class oxUserCounter
00007 {
00008
00014 public function getAdminCount()
00015 {
00016 $oDb = oxDb::getDb();
00017
00018 $sQuery = "SELECT COUNT(1) FROM oxuser WHERE oxrights != 'user'";
00019
00020 return (int) $oDb->getOne($sQuery);
00021 }
00022
00028 public function getActiveAdminCount()
00029 {
00030 $oDb = oxDb::getDb();
00031
00032 $sQuery = "SELECT COUNT(1) FROM oxuser WHERE oxrights != 'user' AND oxactive = 1 ";
00033
00034 return (int) $oDb->getOne($sQuery);
00035 }
00036 }