tristanpriem / qcal

Automatically exported from code.google.com/p/qcal
0 stars 0 forks source link

qCal autoload - shouldn't worry about loading other lib classes. #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
qCal autoloader should limit loading classes that begin with qCal_ prefix 
(instead of working with all type of class name - which ends with exception 
otherwise)

{{{
function qCal_Autoloader($name) {

    if (strpos($name, 'qCal') === 0) {
        qCal_Loader::loadClass($name);
    }

}
}}}

Original issue reported on code.google.com by prasad8...@gmail.com on 3 Oct 2013 at 11:18