mirror of
https://github.com/flextype/flextype.git
synced 2025-08-08 22:26:46 +02:00
feat(core): Hide access for all core properties #467
This commit is contained in:
@@ -26,49 +26,49 @@ class Entries
|
||||
* Current entry id
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
* @access private
|
||||
*/
|
||||
public $entry_id = null;
|
||||
private $entry_id = null;
|
||||
|
||||
/**
|
||||
* Current entry data array
|
||||
*
|
||||
* @var array
|
||||
* @access public
|
||||
* @access private
|
||||
*/
|
||||
public $entry = [];
|
||||
private $entry = [];
|
||||
|
||||
/**
|
||||
* Current entry create data array
|
||||
*
|
||||
* @var array
|
||||
* @access public
|
||||
* @access private
|
||||
*/
|
||||
public $entry_create_data = [];
|
||||
private $entry_create_data = [];
|
||||
|
||||
/**
|
||||
* Current entry update data array
|
||||
*
|
||||
* @var array
|
||||
* @access public
|
||||
* @access private
|
||||
*/
|
||||
public $entry_update_data = [];
|
||||
private $entry_update_data = [];
|
||||
|
||||
/**
|
||||
* Current entries data
|
||||
*
|
||||
* @var array|bool|int
|
||||
* @access public
|
||||
* @access private
|
||||
*/
|
||||
public $entries;
|
||||
private $entries;
|
||||
|
||||
/**
|
||||
* Current entries id
|
||||
*
|
||||
* @var string
|
||||
* @access public
|
||||
* @access private
|
||||
*/
|
||||
public $entries_id = null;
|
||||
private $entries_id = null;
|
||||
|
||||
/**
|
||||
* Fetch entry(entries)
|
||||
@@ -388,4 +388,27 @@ class Entries
|
||||
|
||||
return md5('entry' . $entry_file);
|
||||
}
|
||||
|
||||
/**
|
||||
* Dynamically access entries properties.
|
||||
*
|
||||
* @param string $key Key
|
||||
* @return mixed
|
||||
*/
|
||||
public function __get(string $key)
|
||||
{
|
||||
return $this->$key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dynamically set entries properties.
|
||||
*
|
||||
* @param string $key Key
|
||||
* @param mixed $value Value
|
||||
* @return void
|
||||
*/
|
||||
public function __set(string $key, $value): void
|
||||
{
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
|
@@ -378,4 +378,27 @@ class Plugins
|
||||
include_once PATH['project'] . '/plugins/' . $plugin_name . '/bootstrap.php';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Dynamically access entries properties.
|
||||
*
|
||||
* @param string $key Key
|
||||
* @return mixed
|
||||
*/
|
||||
public function __get(string $key)
|
||||
{
|
||||
return $this->$key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dynamically set entries properties.
|
||||
*
|
||||
* @param string $key Key
|
||||
* @param mixed $value Value
|
||||
* @return void
|
||||
*/
|
||||
public function __set(string $key, $value): void
|
||||
{
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@ class Markdown
|
||||
/**
|
||||
* Markdown
|
||||
*/
|
||||
protected $markdown;
|
||||
private $markdown;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
@@ -16,7 +16,7 @@ class Shortcode
|
||||
/**
|
||||
* Shortcode Fasade
|
||||
*/
|
||||
protected $shortcode;
|
||||
private $shortcode;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
Reference in New Issue
Block a user