Skip to content

Commit 1d7448f

Browse files
authored
Merge pull request #214 from CCPBioSim/stats
Stats
2 parents 8f41269 + 0c6e72d commit 1d7448f

8 files changed

Lines changed: 1039 additions & 0 deletions

File tree

pkg_ccpbiosim/constituents/com_ccpbiosim/administrator/languages/en-GB/com_ccpbiosim.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ COM_CCPBIOSIM_SEARCH_TOOLS = "Search Tools"
3636
COM_CCPBIOSIM_SEARCH_TOOLS_DESC = "Filter the list items"
3737
COM_CCPBIOSIM_SEARCH_FILTER_CLEAR = "Clear filter"
3838

39+
COM_CCPBIOSIM_TITLE_LIST_VIEW_STATISTICS = "Statistics"
40+
COM_CCPBIOSIM_TITLE_LIST_VIEW_STATISTICS_DESC = "Show a page of statistics"
41+
3942
COM_CCPBIOSIM_TITLE_ITEM_VIEW_SOFTWARE = "Software View"
4043
COM_CCPBIOSIM_TITLE_ITEM_VIEW_SOFTWARE_DESC = "Show software applet page"
4144
COM_CCPBIOSIM_TITLE_ITEM_VIEW_WORKSHOP = "Workshop View"

pkg_ccpbiosim/constituents/com_ccpbiosim/administrator/languages/en-GB/com_ccpbiosim.sys.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ COM_CCPBIOSIM_TITLE_ITEM_VIEW_EVENT="Single Event"
3737
COM_CCPBIOSIM_TITLE_ITEM_VIEW_EVENT_DESC="Show a specific event"
3838
COM_CCPBIOSIM_TITLE_FORM_VIEW_EVENT="Event Form"
3939
COM_CCPBIOSIM_TITLE_FORM_VIEW_EVENT_DESC="Show a form to add or edit a event"
40+
41+
COM_CCPBIOSIM_TITLE_LIST_VIEW_STATISTICS="Statistics"
42+
COM_CCPBIOSIM_TITLE_LIST_VIEW_STATISTICS_DESC="Show a page of Statistics"

pkg_ccpbiosim/constituents/com_ccpbiosim/site/languages/en-GB/com_ccpbiosim.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ COM_CCPBIOSIM_TITLE_ITEM_VIEW_SOFTWARE="Software View"
3737
COM_CCPBIOSIM_TITLE_ITEM_VIEW_SOFTWARE_DESC="Show software applet page"
3838
COM_CCPBIOSIM_TITLE_SOFTWARE="Software"
3939

40+
COM_CCPBIOSIM_TITLE_LIST_VIEW_STATISTICS="Statistics"
41+
COM_CCPBIOSIM_TITLE_LIST_VIEW_STATISTICS_DESC="Show a page of Statistics"
42+
4043
COM_CCPBIOSIM_TITLE_ITEM_VIEW_WORKSHOP="Publication View"
4144
COM_CCPBIOSIM_TITLE_ITEM_VIEW_WORKSHOP_DESC="Show publication applet page"
4245
COM_CCPBIOSIM_TITLE_WORKSHOP="Workshops"
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
/**
3+
* @version CVS: 1.0.0
4+
* @package Com_Ccpbiosim
5+
* @author James <james.gebbie@gmail.com>
6+
* @copyright 2026 James
7+
* @license GNU General Public License version 2 or later; see LICENSE.txt
8+
*/
9+
10+
namespace Ccpbiosim\Component\Ccpbiosim\Site\Controller;
11+
12+
\defined('_JEXEC') or die;
13+
14+
use Joomla\CMS\Application\SiteApplication;
15+
use Joomla\CMS\Factory;
16+
use Joomla\CMS\Language\Multilanguage;
17+
use Joomla\CMS\Language\Text;
18+
use Joomla\CMS\MVC\Controller\FormController;
19+
use Joomla\CMS\Router\Route;
20+
use Joomla\CMS\Uri\Uri;
21+
use Joomla\Utilities\ArrayHelper;
22+
23+
/**
24+
* Statistics class.
25+
*
26+
* @since 1.0.0
27+
*/
28+
class StatisticsController extends FormController
29+
{
30+
/**
31+
* Proxy for getModel.
32+
*
33+
* @param string $name The model name. Optional.
34+
* @param string $prefix The class prefix. Optional
35+
* @param array $config Configuration array for model. Optional
36+
*
37+
* @return object The model
38+
*
39+
* @since 1.0.0
40+
*/
41+
public function getModel($name = 'Statistics', $prefix = 'Site', $config = array())
42+
{
43+
return parent::getModel($name, $prefix, array('ignore_request' => true));
44+
}
45+
}

0 commit comments

Comments
 (0)