Migrate private variables to protected to allow to extend classes
This commit is contained in:
parent
8ff877bf37
commit
a1a7a7fd38
|
@ -285,3 +285,9 @@ $(document).ready(function() {
|
|||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// Open the tab defined in the URL
|
||||
const anchor = window.location.hash;
|
||||
$(`a[href="${anchor}"]`).tab('show');
|
||||
</script>
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
class Block {
|
||||
|
||||
private $vars;
|
||||
protected $vars;
|
||||
|
||||
function __construct($key)
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
class Blocks extends dbJSON
|
||||
{
|
||||
// Fields allowed for a row in the database
|
||||
private $dbFields = array(
|
||||
protected $dbFields = array(
|
||||
'title'=>'',
|
||||
'value'=>'',
|
||||
'description'=>''
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
class Category {
|
||||
|
||||
private $vars;
|
||||
protected $vars;
|
||||
|
||||
function __construct($key)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
class Login {
|
||||
|
||||
private $users;
|
||||
protected $users;
|
||||
|
||||
function __construct()
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
class Pages extends dbJSON {
|
||||
|
||||
private $parentKeyList = array();
|
||||
private $dbFields = array(
|
||||
protected $parentKeyList = array();
|
||||
protected $dbFields = array(
|
||||
'title'=>'',
|
||||
'description'=>'',
|
||||
'username'=>'',
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
class Page {
|
||||
|
||||
private $vars;
|
||||
protected $vars;
|
||||
|
||||
function __construct($key)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
class Security extends dbJSON
|
||||
{
|
||||
private $dbFields = array(
|
||||
protected $dbFields = array(
|
||||
'minutesBlocked'=>5,
|
||||
'numberFailuresAllowed'=>10,
|
||||
'blackList'=>array()
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
class Syslog extends dbJSON {
|
||||
|
||||
public $dbFields = array(
|
||||
protected $dbFields = array(
|
||||
'date'=> array('inFile'=>false, 'value'=>''),
|
||||
'dictionaryKey'=> array('inFile'=>false, 'value'=>''),
|
||||
'notes'=> array('inFile'=>false, 'value'=>''),
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
class Tag {
|
||||
|
||||
private $vars;
|
||||
protected $vars;
|
||||
|
||||
function __construct($key)
|
||||
{
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
class Url
|
||||
{
|
||||
private $uri;
|
||||
private $uriStrlen;
|
||||
private $whereAmI;
|
||||
private $slug;
|
||||
private $filters; // Filters for the URI
|
||||
private $notFound;
|
||||
private $parameters;
|
||||
private $activeFilter;
|
||||
private $httpCode;
|
||||
private $httpMessage;
|
||||
protected $uri;
|
||||
protected $uriStrlen;
|
||||
protected $whereAmI;
|
||||
protected $slug;
|
||||
protected $filters; // Filters for the URI
|
||||
protected $notFound;
|
||||
protected $parameters;
|
||||
protected $activeFilter;
|
||||
protected $httpCode;
|
||||
protected $httpMessage;
|
||||
|
||||
function __construct()
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php defined('BLUDIT') or die('Bludit CMS.');
|
||||
|
||||
class User {
|
||||
private $vars;
|
||||
protected $vars;
|
||||
|
||||
function __construct($username)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
class Users extends dbJSON {
|
||||
|
||||
public $dbFields = array(
|
||||
protected $dbFields = array(
|
||||
'firstName'=>'',
|
||||
'lastName'=>'',
|
||||
'nickname'=>'',
|
||||
|
|
Loading…
Reference in New Issue