/** * Load the class file * * Load the file for a given classname 'tx_key_path_file' * or a given part of the filepath that contains enough information to find the class. * * @param string classname or path matching for the type of loader * @return boolean true if successfull, false otherwise * @see tx_div2007_loader */ public static function loadClass($classNameOrPathInformation) { require_once PATH_BE_div2007 . 'class.tx_div2007_t3Loader.php'; if (tx_div2007_t3Loader::load($classNameOrPathInformation)) { return TRUE; } return FALSE; }
/** * Load a t3 class and make an instance * * Returns ux_ extension class if any by make use of t3lib_div::makeInstance * * @param string classname * @param string extension key that varies from classnames * @param string prefix of classname * @param string ending of classname * @return object instance of the class or false if it fails * @see t3lib_div::makeInstance * @see load() */ function makeInstance($class, $alternativeKey = '', $prefix = 'class.', $suffix = '.php') { if (tx_div2007_t3Loader::load($class, $alternativeKey, $prefix, $suffix)) { return t3lib_div::makeInstance($class); // includes ux_ classes } else { return false; } }