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/structura.komma.pro/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);
    }
}