Ejemplo n.º 1
0
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
/*
 * Created on 2008 Dec 18
 * by Martin Wernstahl <*****@*****.**>
 */
// get subclass_prefix
Finder::$subclass_prefix = config_item('subclass_prefix');
/**
 * Finds files in the directory structure.
 *
 * @author Martin Wernstahl
 */
class Finder
{
    /**
     * The paths to search in, also controls the cascades.
     *
     * Most important first.
     * Default: APPPATH, BASEPATH
     *
     * @var array
     */
    static $paths = array(APPPATH, BASEPATH);
    /**
     * Stores all filenames that load_file() has found, and if they are subclasses or not.
     *
     * @var array