[feature/module_services] Move search module to module services

This commit is contained in:
Marc Alexander
2013-11-16 17:16:28 +01:00
parent 19c2d437a4
commit a816a703f2
3 changed files with 43 additions and 26 deletions

View File

@@ -1,85 +0,0 @@
<?php
/**
*
* @package Board3 Portal v2 - Search
* @copyright (c) Board3 Group ( www.board3.de )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* @package Search
*/
class portal_search_module extends \board3\portal\modules\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 = 'PORTAL_SEARCH';
/**
* Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/"
*/
public $image_src = 'portal_search.png';
/**
* module-language file
* file must be in "language/{$user->lang}/mods/portal/"
*/
public $language = 'portal_search_module';
/**
* custom acp template
* file must be in "adm/style/portal/"
*/
public $custom_acp_tpl = '';
public function get_template_side($module_id)
{
global $template, $phpbb_root_path, $phpEx;
$template->assign_var('S_SEARCH_ACTION', append_sid("{$phpbb_root_path}search.$phpEx"));
return 'search_side.html';
}
public function get_template_acp($module_id)
{
return array(
'title' => 'PORTAL_SEARCH',
'vars' => array(),
);
}
/**
* API functions
*/
public function install($module_id)
{
return true;
}
public function uninstall($module_id, $db)
{
return true;
}
}