public function __construct($sLogin)
 {
     parent::__construct();
     $this->LogError("Wrong credentials: '{$sLogin}'");
 }
예제 #2
0
 protected function _SearchObjects($sOQL)
 {
     $oRes = new WebServiceResult();
     try {
         $oSearch = DBObjectSearch::FromOQL($sOQL);
         $oSet = new DBObjectSet($oSearch);
         $aData = $oSet->ToArrayOfValues();
         foreach ($aData as $iRow => $aRow) {
             $oRes->AddResultRow("row_{$iRow}", $aRow);
         }
     } catch (CoreException $e) {
         $oRes->LogError($e->getMessage());
     } catch (Exception $e) {
         $oRes->LogError($e->getMessage());
     }
     $this->LogUsage(__FUNCTION__, $oRes);
     return $oRes;
 }