src/Loader/Loader.php
public static function getCollection($pCollection)
    {
        $fileName  = strtolower($pCollection);
        $className = $fileName . CollectionInterface::APP_SUFFIX;

        if (Agl::isInitialized()) {
            $collectionPath = APP_PATH
                            . Agl::APP_PHP_DIR
                            . CollectionInterface::APP_PHP_DIR
                            . DS
                            . $fileName
                            . Agl::PHP_EXT;

            if (is_readable($collectionPath)) {
                return self::getInstance($className, array($pCollection));
            } else {
                return new Collection($pCollection);
            }
        } else {
            return new Collection($pCollection);
        }
    }
public static function getCollection($pCollection)
    {
        $fileName  = strtolower($pCollection);
        $className = $fileName . CollectionInterface::APP_SUFFIX;

        if (Agl::isInitialized()) {
            $collectionPath = APP_PATH
                            . Agl::APP_PHP_DIR
                            . CollectionInterface::APP_PHP_DIR
                            . DS
                            . $fileName
                            . Agl::PHP_EXT;

            if (is_readable($collectionPath)) {
                return self::getInstance($className, array($pCollection));
            } else {
                return new Collection($pCollection);
            }
        } else {
            return new Collection($pCollection);
        }
    }
public static function getCollection ( $ pCollection ) { $ fileName = strtolower ( $ pCollection ) ; $ className = $ fileName . CollectionInterface :: APP_SUFFIX ; if ( Agl :: isInitialized ( ) ) { $ collectionPath = APP_PATH . Agl :: APP_PHP_DIR . CollectionInterface :: APP_PHP_DIR . DS . $ fileName . Agl :: PHP_EXT ; if ( is_readable ( $ collectionPath ) ) { return self :: getInstance ( $ className , array ( $ pCollection ) ) ; } else { return new Collection ( $ pCollection ) ; } } else { return new Collection ( $ pCollection ) ; } }
Return an instance of the requested collection.

@param string $pCollection
@return mixed
Return an instance of the requested collection .