New logic for storage provider (breaking changes)

This commit is contained in:
RainLoop Team 2015-02-05 03:54:26 +04:00
parent 44566aad4b
commit 51666d7c7e
19 changed files with 453 additions and 297 deletions

View file

@ -9,12 +9,18 @@ class Settings
*/
protected $aData;
/**
* @var bool
*/
protected $bLocal;
/**
* @return void
*/
public function __construct()
public function __construct($bLocal = false)
{
$this->aData = array();
$this->bLocal = !!$bLocal;
}
/**
@ -40,6 +46,14 @@ class Settings
return $this->aData;
}
/**
* @return bool
*/
public function IsLocal()
{
return $this->bLocal;
}
/**
* @param string $sName
* @param mixed $mDefValue = null