List views updated to new structure

This commit is contained in:
2019-06-03 11:59:36 +02:00
parent 904d31843a
commit eb704af915
7 changed files with 55 additions and 42 deletions

View File

@@ -1,22 +1,27 @@
<?php
use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Toolbar\ToolbarHelper;
// No direct access.
defined('_JEXEC') or die;
class ClubsViewClubs extends HtmlView
class ClubsViewClubs extends AbstractClubsViewList
{
function display($tpl = null)
{
// $this->offers = ClubsOffer::loadOffers();
$factory = new CommonClubsModelFactoryClub();
$this->clubs = $factory->loadElements();
ToolbarHelper::title('Club-Management - Clubs');
ToolbarHelper::title('Club-Management - Clubs', 'cube');
parent::display($tpl);
}
protected function getFactory()
{
return new CommonClubsModelFactoryClub();
}
protected function getSingleBaseName()
{
return 'club';
}
}