[feature/module_services] Start using services for modules

This includes a module_interface and module_base for the modules.
Adding, moving, or managing modules doesn't work yet.
This commit is contained in:
Marc Alexander
2013-11-07 17:33:59 +01:00
parent 6df924ff0f
commit e3220460a9
5 changed files with 341 additions and 10 deletions

72
modules/module_base.php Normal file
View File

@@ -0,0 +1,72 @@
<?php
/**
*
* @package Board3 Portal v2.1
* @copyright (c) 2013 Board3 Group ( www.board3.de )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
namespace board3\portal\modules;
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* @package module_base
*/
abstract class module_base implements module_interface
{
/**
* @inheritdoc
*/
public function get_allowed_columns()
{
return $this->columns;
}
/**
* @inheritdoc
*/
public function get_name()
{
return $this->name;
}
/**
* @inheritdoc
*/
public function get_image()
{
return $this->image_src;
}
/**
* @inheritdoc
*/
public function get_language()
{
return $this->language;
}
/**
* @inheritdoc
*/
public function install($module_id)
{
return true;
}
/**
* @inheritdoc
*/
public function uninstall($module_id)
{
return true;
}
}