component.php 433 Bytes
<?
use \Cpeople\Classes\Block;

if ($this->StartResultCache(COMPONENTS_CACHE_TTL))
{
    $arResult['ITEM'] = Block\Getter::instance()
        ->setFilter(array('IBLOCK_ID' => IBLOCK_TEXT, 'ACTIVE' => 'Y', 'CODE' => $arParams['ID']))
//        ->setClassName('\SH\Entities\Text')
        ->setNavStartParams(array('nTopCount' => 1))
        ->getOne();

    $this->SetResultCacheKeys(array());
    $this->IncludeComponentTemplate();
}