mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
* [MOD] Improved plugins handling by moving items' data to new database table.
* [MOD] Added plugins upgrade process Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -31,5 +31,21 @@ namespace SP\DataModel;
|
||||
*/
|
||||
abstract class DataModelBase
|
||||
{
|
||||
/**
|
||||
* is utilized for reading data from inaccessible members.
|
||||
*
|
||||
* @param $name string
|
||||
*
|
||||
* @return mixed
|
||||
* @link https://php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.members
|
||||
*/
|
||||
public function __get($name)
|
||||
{
|
||||
if (property_exists($this, $name)) {
|
||||
return $this->{$name};
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user