Untitled diff

Created Diff never expires
1 removal
64 lines
1 addition
64 lines
<?php
<?php
/*##################################################
/*##################################################
* BlogExtensionPointProvider.class.php
* BlogExtensionPointProvider.class.php
* -------------------
* -------------------
* begin : November 04, 2014
* begin : November 04, 2014
* copyright : (C) 2014 Anthony VIOLET
* copyright : (C) 2014 Anthony VIOLET
* email : anthony.violet@outlook.fr
* email : anthony.violet@outlook.fr
*
*
*
*
###################################################
###################################################
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*
###################################################*/
###################################################*/


class BlogExtensionPointProvider extends ExtensionPointProvider
class BlogExtensionPointProvider extends ExtensionPointProvider
{
{
public function __construct()
public function __construct()
{
{
parent::__construct('blog');
parent::__construct('blog');
}
}


public function menus()
public function menus()
{
{
return new ModuleMenus(array(
return new ModuleMenus(array(
new BlogModuleMiniMenu()
new BlogModuleMiniMenu()
));
));
}
}


public function comments()
public function comments()
{
{
return new CommentsTopics(array(new BlogCommentsTopic()));
return new CommentsTopics(array(new BlogCommentsTopic()));
}
}
public function url_mappings()
public function url_mappings()
{
{
return new UrlMappings(array(new DispatcherUrlMapping('/index.php')));
return new UrlMappings(array(new DispatcherUrlMapping('/blog/index.php')));
}
}


public function css_files()
public function css_files()
{
{
$module_css_files = new ModuleCssFiles();
$module_css_files = new ModuleCssFiles();
$module_css_files->adding_running_module_displayed_file('blog.css');
$module_css_files->adding_running_module_displayed_file('blog.css');
return $module_css_files;
return $module_css_files;
}
}


public function tree_links()
public function tree_links()
{
{
return new BlogTreeLinks();
return new BlogTreeLinks();
}
}
}
}
?>
?>