/** * Get article for this node. * * @param $pid * * @return string * * @SuppressWarnings(PHPMD.UnusedLocalVariable) */ protected function getArticleNode($pid) { $listData = new SQLListData($this->getData()->getWidget(), Database::getInstance(), $this->getListDataConfig($pid)); list($articleLevel, $start) = $listData->browseFrom(); $level = new \ArrayIterator(); /** @var SQLListNode $current */ while ($current = $articleLevel->current()) { $node = $current->getData(); $node['_key'] = 'tl_article::' . $node['_key']; $listNode = new SQLListNode($listData, $node); $level->append($listNode); $articleLevel->next(); } ob_start(); include Controller::getTemplate('avisota_selectri_with_items'); return ob_get_clean(); }