Privacy/GDPR friendly version (removed: Social, Gravatar, Facebook, Google, Twitter, DropBox, OwnCloud)

Also removed: POP3, OAuth2 and update feature
Added: admin password_hash/password_verify
Requires: PHP 7.3+
Replaced: CRLF with LF
Replaced: pclZip with ZipArchive
This commit is contained in:
djmaze 2020-03-09 17:04:17 +01:00
parent 15ceddc202
commit 2cada68f41
293 changed files with 23728 additions and 85420 deletions

View file

@ -17,18 +17,13 @@ class Settings
/**
* @return void
*/
public function __construct($bLocal = false)
public function __construct(bool $bLocal = false)
{
$this->aData = array();
$this->bLocal = !!$bLocal;
}
/**
* @param array $aData
*
* @return \RainLoop\Settings
*/
public function InitData($aData)
public function InitData(array $aData) : self
{
if (\is_array($aData))
{
@ -38,41 +33,33 @@ class Settings
return $this;
}
/**
* @return array
*/
public function DataAsArray()
public function DataAsArray() : array
{
return $this->aData;
}
/**
* @return bool
*/
public function IsLocal()
public function IsLocal() : bool
{
return $this->bLocal;
}
/**
* @param string $sName
* @param mixed $mDefValue = null
*
* @return mixed
*/
public function GetConf($sName, $mDefValue = null)
public function GetConf(string $sName, $mDefValue = null)
{
return isset($this->aData[$sName]) ? $this->aData[$sName] : $mDefValue;
}
/**
* @param string $sName
* @param mixed $mValue
*
* @return void
*/
public function SetConf($sName, $mValue)
public function SetConf(string $sName, $mValue)
{
$this->aData[$sName] = $mValue;
}
}
}