Beispiel #1
0
 public function __construct($args = null)
 {
     $this->arg('namespace', 0, $args);
     $this->arg('options', 1, $args);
     $this->args = $args;
     CkJLoader::registerPrefix('JDom', dirname(__FILE__));
     CkJLoader::discover('JDom', dirname(__FILE__));
     $this->app = JFactory::getApplication();
     $this->registerFrameworks();
 }
Beispiel #2
0
    if (version_compare($version->RELEASE, '2.5', '<')) {
        // Load the missing class file
        require_once JPATH_ADMIN_RTIPRINT . DS . 'legacy' . DS . 'loader.php';
        // Register the autoloader functions.
        CkJLoader::setup();
    } else {
        class CkJLoader extends JLoader
        {
        }
    }
}
// Automatically find the class files (Platform 12.1)
CkJLoader::registerPrefix('RtiprintClass', JPATH_ADMIN_RTIPRINT . DS . 'classes');
CkJLoader::registerPrefix('RtiprintHelper', JPATH_ADMIN_RTIPRINT . DS . 'helpers');
// Find Legacy Files (class files missing in previous versions)
CkJLoader::registerPrefix('RtiprintLegacy', JPATH_ADMIN_RTIPRINT . DS . 'legacy');
CkJLoader::discover('RtiprintClass', JPATH_ADMIN_RTIPRINT . DS . 'classes');
CkJLoader::discover('RtiprintHelper', JPATH_ADMIN_RTIPRINT . DS . 'helpers');
// Some helpers
CkJLoader::register('JToolBarHelper', JPATH_ADMINISTRATOR . DS . "includes" . DS . "toolbar.php", true);
CkJLoader::register('JSubMenuHelper', JPATH_ADMINISTRATOR . DS . "includes" . DS . "toolbar.php", true);
// Register all Models because of unsolved random JLoader issue.
// Cook offers 3 months subscribtion for the person who solve this issue.
JLoader::register('RtiprintModelChangelogs', JPATH_COMPONENT . DS . 'models' . DS . 'changelogs.php');
JLoader::register('RtiprintModelChangelog', JPATH_COMPONENT . DS . 'models' . DS . 'changelog.php');
JLoader::register('RtiprintModelTowns', JPATH_COMPONENT . DS . 'models' . DS . 'towns.php');
JLoader::register('RtiprintModelTown', JPATH_COMPONENT . DS . 'models' . DS . 'town.php');
JLoader::register('RtiprintModelBuildings', JPATH_COMPONENT . DS . 'models' . DS . 'buildings.php');
JLoader::register('RtiprintModelBuilding', JPATH_COMPONENT . DS . 'models' . DS . 'building.php');
JLoader::register('RtiprintModelOperatingsystems', JPATH_COMPONENT . DS . 'models' . DS . 'operatingsystems.php');
JLoader::register('RtiprintModelOperatingsystem', JPATH_COMPONENT . DS . 'models' . DS . 'operatingsystem.php');