Example #1
0
 /**
  * @param \RainLoop\Account $oAccount
  * @param bool $bAllowRaw = false
  *
  * @return array
  */
 public function Load($oAccount, $bAllowRaw = false)
 {
     try {
         return $this->IsActive() ? $this->oDriver->Load($oAccount, $bAllowRaw) : array();
     } catch (\MailSo\Net\Exceptions\SocketCanNotConnectToHostException $oException) {
         throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::ConnectionError, $oException);
     } catch (\Exception $oException) {
         throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::CantGetFilters, $oException);
     }
     return false;
 }