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 #1

Updated by Alexander Opitz over 10 years ago

  • Status changed from New to Needs Feedback
  • Is Regression set to No

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (4.5.35 or 6.2.4)?

Actions #2

Updated by Alexander Opitz almost 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF