oDriver = $oDriver; } /** * @param \RainLoop\Model\Account $oAccount * * @return \RainLoop\Settings */ public function Load(\RainLoop\Model\Account $oAccount) { $oSettings = new \RainLoop\Settings(); $oSettings->InitData($this->oDriver->Load($oAccount)); return $oSettings; } /** * @param \RainLoop\Model\Account $oAccount * @param \RainLoop\Settings $oSettings * * @return bool */ public function Save(\RainLoop\Model\Account $oAccount, \RainLoop\Settings $oSettings) { return $this->oDriver->Save($oAccount, $oSettings->DataAsArray()); } /** * @return bool */ public function IsActive() { return $this->oDriver instanceof \RainLoop\Providers\Settings\ISettings; } }