File: D:/HostingSpaces/SBogers85/equichecker.com/app/KommaApp/Kms/Core/Sections/KmsSiteSection.php
<?php
/**
*
*
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2016, Komma Mediadesign
*/
namespace KommaApp\Kms\Core\Sections;
use Illuminate\Support\ViewErrorBag;
use KommaApp\Kms\Core\Kms;
use KommaApp\Kms\Core\KmsSiteRepository;
abstract class KmsSiteSection extends KmsSection
{
public $siteId;
function __construct(
Kms $kms,
KmsSiteRepository $repository,
KmsSectionTabs $tabs)
{
$this->siteId = $kms->getCurrentSiteId();
parent::__construct($kms, $repository, $tabs);
}
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->repository->getModels($this->siteId);
}
}