Project

General

Profile

Actions

Feature #20450

closed

Use t3lib_div::callUserFunction in typoscript userFunc condition

Added by Fabrizio Branca over 15 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2009-05-18
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
medium
Sprint Focus:

Description

In typoscripts userFunc condition [userFunc = ...] it is only allowed to user php functions. No class methods. The parsing (t3lib_matchCondition->evalConditionStr()) should use t3lib_div::callUserFunction() internally for consistency and the possibility to use class methods as a user function. This has been discussed (http://lists.typo3.org/pipermail/typo3-team-core/2006-September/005667.html) but was never commited.
A patch (originally from Wolfgang Klinger's post) is appended to this ticket.

(issue imported from #M11120)


Files

patch_matchuserfunc.diff (1.36 KB) patch_matchuserfunc.diff Administrator Admin, 2009-05-18 17:07

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #61489: Add AbstractCondition to implement custom TypoScript ConditionsClosedBenni Mack2014-09-09

Actions
Actions

Also available in: Atom PDF