concrete/src/Activity/Newsflow.php
public function getEditionByID($cID)
    {
        if (!$this->hasConnectionError()) {
            $fileService = new File();
            $appVersion = Config::get('concrete.version');
            $cfToken = Marketplace::getSiteToken();
            $path = Config::get('concrete.urls.newsflow') . '/' . DISPATCHER_FILENAME . '/?_ccm_view_external=1&appVersion=' . $appVersion . '&cID=' . rawurlencode($cID) . '&cfToken=' . rawurlencode($cfToken);
            $response = $fileService->getContents($path);
            $ni = new NewsflowItem();
            $obj = $ni->parseResponse($response);

            return $obj;
        }

        return false;
    }
public function getEditionByID($cID)
    {
        if (!$this->hasConnectionError()) {
            $fileService = new File();
            $appVersion = Config::get('concrete.version');
            $cfToken = Marketplace::getSiteToken();
            $path = Config::get('concrete.urls.newsflow') . '/' . DISPATCHER_FILENAME . '/?_ccm_view_external=1&appVersion=' . $appVersion . '&cID=' . rawurlencode($cID) . '&cfToken=' . rawurlencode($cfToken);
            $response = $fileService->getContents($path);
            $ni = new NewsflowItem();
            $obj = $ni->parseResponse($response);

            return $obj;
        }

        return false;
    }
public function getEditionByID ( $ cID ) { if ( ! $ this -> hasConnectionError ( ) ) { $ fileService = new File ( ) ; $ appVersion = Config :: get ( 'concrete.version' ) ; $ cfToken = Marketplace :: getSiteToken ( ) ; $ path = Config :: get ( 'concrete.urls.newsflow' ) . '/' . DISPATCHER_FILENAME . '/?_ccm_view_external=1&appVersion=' . $ appVersion . '&cID=' . rawurlencode ( $ cID ) . '&cfToken=' . rawurlencode ( $ cfToken ) ; $ response = $ fileService -> getContents ( $ path ) ; $ ni = new NewsflowItem ( ) ; $ obj = $ ni -> parseResponse ( $ response ) ; return $ obj ; } return false ; }
Retrieves a NewsflowItem object for a given collection ID.

@param int $cID

@return bool|NewsflowItem Returns a NewsflowItem object, false if there was an error or one could not be located.
Retrieves a NewsflowItem object for a given collection ID .