src/Repositories/CategoryRepository.php
public function findAllByStoreView($storeViewId)
    {
        // try to load the categories and return them
        $this->categoriesByStoreViewStmt->execute(array(MemberNames::STORE_ID => $storeViewId));
        return $this->categoriesByStoreViewStmt->fetchAll(\PDO::FETCH_ASSOC);
    }
public function findAllByStoreView($storeViewId)
    {
        // try to load the categories and return them
        $this->categoriesByStoreViewStmt->execute(array(MemberNames::STORE_ID => $storeViewId));
        return $this->categoriesByStoreViewStmt->fetchAll(\PDO::FETCH_ASSOC);
    }
Return's an array with all available categories by store view ID.

@param integer $storeViewId The store view ID to return the categories for

@return array The available categories for the passed store view ID