concrete/src/Activity/Newsflow.php
public function getSlotContents()
    {
        if ($this->slots === null) {
            $fileService = new File();
            $appVersion = Config::get('concrete.version');
            $cfToken = Marketplace::getSiteToken();
            $url = Config::get('concrete.urls.newsflow') . Config::get('concrete.urls.paths.newsflow_slot_content');
            $path = $url . '?cfToken=' . rawurlencode($cfToken) . '&appVersion=' . $appVersion;
            $response = $fileService->getContents($path);
            $nsi = new NewsflowSlotItem();
            $this->slots = $nsi->parseResponse($response);
        }

        return $this->slots;
    }
public function getSlotContents()
    {
        if ($this->slots === null) {
            $fileService = new File();
            $appVersion = Config::get('concrete.version');
            $cfToken = Marketplace::getSiteToken();
            $url = Config::get('concrete.urls.newsflow') . Config::get('concrete.urls.paths.newsflow_slot_content');
            $path = $url . '?cfToken=' . rawurlencode($cfToken) . '&appVersion=' . $appVersion;
            $response = $fileService->getContents($path);
            $nsi = new NewsflowSlotItem();
            $this->slots = $nsi->parseResponse($response);
        }

        return $this->slots;
    }
public function getSlotContents ( ) { if ( $ this -> slots === null ) { $ fileService = new File ( ) ; $ appVersion = Config :: get ( 'concrete.version' ) ; $ cfToken = Marketplace :: getSiteToken ( ) ; $ url = Config :: get ( 'concrete.urls.newsflow' ) . Config :: get ( 'concrete.urls.paths.newsflow_slot_content' ) ; $ path = $ url . '?cfToken=' . rawurlencode ( $ cfToken ) . '&appVersion=' . $ appVersion ; $ response = $ fileService -> getContents ( $ path ) ; $ nsi = new NewsflowSlotItem ( ) ; $ this -> slots = $ nsi -> parseResponse ( $ response ) ; } return $ this -> slots ; }
Retrieves an array of NewsflowSlotItems.

@return NewsflowSlotItem[]|null
Retrieves an array of NewsflowSlotItems .