예제 #1
0
 /**
  * @param string $sSearchDesc Default value is empty string.
  *
  * @return int|false
  */
 public function getTenantCount($sSearchDesc = '')
 {
     $iResultCount = false;
     if ($this->oConnection->Execute($this->oCommandCreator->getTenantCount($sSearchDesc))) {
         $oRow = $this->oConnection->GetNextRecord();
         if ($oRow) {
             $iResultCount = (int) $oRow->tenants_count;
         }
         $this->oConnection->FreeResult();
     }
     $this->throwDbExceptionIfExist();
     return $iResultCount;
 }