HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/vebon.komma.pro/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);
    }


}