File: D:/HostingSpaces/SBogers10/lc-hydraulics.komma.nl/app/KommaApp/Kms/Core/Sections/SiteSection.php
<?php
/**
*
*
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2016, Komma
*/
namespace App\KommaApp\Kms\Core\Sections;
use App\KommaApp\Kms\Core\Kms;
use App\KommaApp\Routes\RouteService;
abstract class SiteSection extends Section
{
public $siteId;
function __construct(SectionServiceInterface $sectionService, RouteService $routeService, AbstractSectionTabsDirector $sectionSectionTabDirector)
{
parent::__construct($sectionService, $routeService, $sectionSectionTabDirector);
$this->siteId = $this->kms->getSiteId();
}
public function loadModels()
{
//If getSortable() returns true, dont load the models, they are loaded via Ajax
if ($this->getSortable()) return null;
return $this->models = $this->sectionService->getModelsForSideBar();
// return $this->models = $this->service->getModels($this->siteId);
}
}