Added abstract/final to classes to be more strict

This commit is contained in:
Tobias Reich 2016-01-19 11:45:41 +01:00
parent 634c3621db
commit 9cb6dc19b7
9 changed files with 10 additions and 10 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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 = '') {

View File

@ -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.');

View File

@ -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;

View File

@ -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();

View File

@ -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;

View File

@ -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;