public function onNewsListFetchItems(array $archives, $featured, $limit, $offset, ModuleNewsList $module)
    {
        if (null === ($criteria = $this->getCriteria($archives, $featured, $module))) {
            return null;
        }

        $criteria->setLimit($limit);
        $criteria->setOffset($offset);

        return $criteria->getNewsModelAdapter()->findBy(
            $criteria->getColumns(),
            $criteria->getValues(),
            $criteria->getOptions()
        );
    }
public function onNewsListFetchItems(array $archives, $featured, $limit, $offset, ModuleNewsList $module)
    {
        if (null === ($criteria = $this->getCriteria($archives, $featured, $module))) {
            return null;
        }

        $criteria->setLimit($limit);
        $criteria->setOffset($offset);

        return $criteria->getNewsModelAdapter()->findBy(
            $criteria->getColumns(),
            $criteria->getValues(),
            $criteria->getOptions()
        );
    }
public function onNewsListFetchItems ( array $ archives , $ featured , $ limit , $ offset , ModuleNewsList $ module ) { if ( null === ( $ criteria = $ this -> getCriteria ( $ archives , $ featured , $ module ) ) ) { return null ; } $ criteria -> setLimit ( $ limit ) ; $ criteria -> setOffset ( $ offset ) ; return $ criteria -> getNewsModelAdapter ( ) -> findBy ( $ criteria -> getColumns ( ) , $ criteria -> getValues ( ) , $ criteria -> getOptions ( ) ) ; }
On news list fetch items.

@param array          $archives
@param bool|null      $featured
@param int            $limit
@param int            $offset
@param ModuleNewsList $module

@return Collection|null
On news list fetch items .