OXID eShop CE  4.9.8
 All Classes Files Functions Variables Pages
oxusercounter.php
Go to the documentation of this file.
1 <?php
2 
7 {
8 
14  public function getAdminCount()
15  {
16  $oDb = oxDb::getDb();
17 
18  $sQuery = "SELECT COUNT(1) FROM oxuser WHERE oxrights != 'user'";
19 
20  return (int) $oDb->getOne($sQuery);
21  }
22 
28  public function getActiveAdminCount()
29  {
30  $oDb = oxDb::getDb();
31 
32  $sQuery = "SELECT COUNT(1) FROM oxuser WHERE oxrights != 'user' AND oxactive = 1 ";
33 
34  return (int) $oDb->getOne($sQuery);
35  }
36 }