Added abstract/final to classes to be more strict
This commit is contained in:
parent
634c3621db
commit
9cb6dc19b7
@ -7,7 +7,7 @@
|
||||
|
||||
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
||||
|
||||
class Album extends Module {
|
||||
final class Album extends Module {
|
||||
|
||||
private $database = null;
|
||||
private $settings = null;
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
||||
|
||||
class Database extends Module {
|
||||
final class Database extends Module {
|
||||
|
||||
private static $versions = array(
|
||||
'020100', #2.1
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
||||
|
||||
class Import extends Module {
|
||||
final class Import extends Module {
|
||||
|
||||
private $database = null;
|
||||
private $settings = null;
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
||||
|
||||
class Log extends Module {
|
||||
final class Log extends Module {
|
||||
|
||||
public static function notice($database, $function, $line, $text = '') {
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
||||
|
||||
class Module {
|
||||
abstract class Module {
|
||||
|
||||
protected $plugins = null;
|
||||
|
||||
@ -25,7 +25,7 @@ class Module {
|
||||
|
||||
}
|
||||
|
||||
public static function dependencies($available = false) {
|
||||
final public static function dependencies($available = false) {
|
||||
|
||||
if ($available===false) exit('Error: Can not execute function. Missing parameters or variables.');
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
||||
|
||||
class Photo extends Module {
|
||||
final class Photo extends Module {
|
||||
|
||||
private $database = null;
|
||||
private $settings = null;
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
||||
|
||||
class Plugins implements \SplSubject {
|
||||
final class Plugins implements \SplSubject {
|
||||
|
||||
private $files = array();
|
||||
private $observers = array();
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
||||
|
||||
class Session extends Module {
|
||||
final class Session extends Module {
|
||||
|
||||
private $settings = null;
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
||||
|
||||
class Settings extends Module {
|
||||
final class Settings extends Module {
|
||||
|
||||
private $database = null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user