public function getAllPublished(
    $orderBy = null,
        $limit = null
    )
    {
        return $this->repository->findAllPublished($orderBy, $limit);
    }
public function getAllPublished(
    $orderBy = null,
        $limit = null
    )
    {
        return $this->repository->findAllPublished($orderBy, $limit);
    }
public function getAllPublished ( $ orderBy = null , $ limit = null ) { return $ this -> repository -> findAllPublished ( $ orderBy , $ limit ) ; }
Method which finds all published items in the repository
@param array $orderBy
@param int $limit
@return array
Method which finds all published items in the repository