* Follow-up to feature #9633: XCLASSes did not work for autoloaded class files
* Fixed bug #11156: Misbehaviours due to integration of autoloader (XCLASSes)
* Fixed bug #11156: Misbehaviours due to integration of autoloader (includeLibs in frontend)
+ * Follow-up to bug #11156: Fixed further misbehaviour of includeLibs in frontend
2009-05-20 Steffen Kamper <info@sk-typo3.de>
* Usage: 17
*
* @param string Base Class name to evaluate
- * @return mixed Final class name to instantiate with "new [classname]" (string)
- * or false (boolean) if even original class name could not be found
+ * @return string Final class name to instantiate with "new [classname]"
* @deprecated since TYPO3 4.3 - Use t3lib_div::makeInstance('myClass', $arg1, $arg2, ..., $argN)
*/
public static function makeInstanceClassName($className) {
self::logDeprecatedFunction();
- $result = false;
- if (class_exists($className)) {
- $result = (class_exists('ux_'.$className) ? t3lib_div::makeInstanceClassName('ux_' . $className) : $className);
- }
- return $result;
+ return (class_exists($className) && class_exists('ux_'.$className) ? t3lib_div::makeInstanceClassName('ux_' . $className) : $className);
}
/**
* class-extension API.
*
* @param string Base class name to evaluate
- * @return mixed Final class name to instantiate with "new [classname]" (string)
- * or false (boolean) if even original class name could not be found
+ * @return mixed Final class name to instantiate with "new [classname]"
*/
protected function getClassName($className) {
- $result = false;
- if (class_exists($className)) {
- $result = (class_exists('ux_' . $className) ? self::getClassName('ux_' . $className) : $className);
- }
- return $result;
+ return (class_exists($className) && class_exists('ux_' . $className) ? self::getClassName('ux_' . $className) : $className);
}
/**