Esempio n. 1
0
 /**
  * 
  * @param type $sType
  * @param type $aWhere
  * @param type $aIds
  * @return type
  */
 public function getEntitiesCount($sType, $aWhere = array(), $aIds = array())
 {
     $mResult = 0;
     if ($this->oConnection->Execute($this->oCommandCreator->getEntitiesCount($sType, $aWhere, $aIds))) {
         while (false !== ($oRow = $this->oConnection->GetNextRecord())) {
             $mResult = $oRow->entities_count;
         }
         $this->oConnection->FreeResult();
     }
     $this->throwDbExceptionIfExist();
     return $mResult;
 }