Zend certified PHP/Magento developer

How to get all products with attribute data in custom created class

I’m pretty new to Magento, and I are trying to create a module for it, but I’m a little stock now because I’m trying to get all products out there are created in the store there are enabled.

I’m working on a custom central class for my module so I can call my functions on cross for CLI, Crontabs where else I need it.

And what I need its called just a new product class and then get products data out like this.

use SmartPackFrameworkProduct;

$products = new Product();
print_r($products->getProducts());

And the class I start working on its like this

<?php
namespace CustomClassFramework;

class Product
{
    function getProducts()
    {
        return [];
    }
}

Mabey I miss understand how its working on Magento and how to speak with the framework, so hope on a little help here.