[feature/module_services] Add clock module

This commit is contained in:
Marc Alexander
2013-11-11 23:02:41 +01:00
parent 2d87b0e06d
commit 18a93ea829
2 changed files with 67 additions and 0 deletions

View File

@@ -51,3 +51,8 @@ services:
- @user
tags:
- { name: board3.module }
board3.module.clock:
class: \board3\portal\modules\clock
tags:
- { name: board3.module }

62
modules/clock.php Normal file
View File

@@ -0,0 +1,62 @@
<?php
/**
*
* @package Board3 Portal v2.1
* @copyright (c) Board3 Group ( www.board3.de )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
namespace board3\portal\modules;
/**
* @package Clock
*/
class clock extends module_base
{
/**
* Allowed columns: Just sum up your options (Exp: left + right = 10)
* top 1
* left 2
* center 4
* right 8
* bottom 16
*/
public $columns = 10;
/**
* Default modulename
*/
public $name = 'CLOCK';
/**
* Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/"
*/
public $image_src = 'portal_clock.png';
/**
* module-language file
* file must be in "language/{$user->lang}/mods/portal/"
*/
public $language = 'portal_clock_module';
/**
* @inheritdoc
*/
public function get_template_side($module_id)
{
return 'clock_side.html';
}
/**
* @inheritdoc
*/
public function get_template_acp($module_id)
{
return array(
'title' => 'ACP_PORTAL_CLOCK_SETTINGS',
'vars' => array(),
);
}
}