Project

General

Profile

Actions

Bug #26997

closed

ExtDirect API Generator - namespace filter works not expectable

Added by Stefan Galinski over 13 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-05-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The namespace filter of the ExtDirect API Generator works not expectable as you need to always give the full namespace instead of just a part of it. This is very annoying if you have more than one registered class.

Example:

The following sample code generates the API of the configured registered class with the very same name.

$this->pageRenderer->addExtDirectCode(array('TYPO3.MyKey.RecordLog.DataProvider'));

The much more expectable behaviour would be to just add the TYPO3.MyKey namespace to the filter list and it matches the more specific namespaces above. The fix should be a no-brainer as the parameters of the isFirstPartOfString method seems to be given in a wrong order.

File: class.t3lib_extjs_extdirectapi.php
Function: findNamespace
Code:

if (t3lib_div::isFirstPartOfStr($filter, $namespace)) {

Actions

Also available in: Atom PDF