Project

General

Profile

Actions

Task #49575

closed

Split up typolink() functionality in multiple methods

Added by Benni Mack over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-07-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The cObj->typolink() method is one of the biggest code chunks in the CMS core, and one of the most central ones for the frontend. However, it is hard to test, debug and understand. That's why certain separate parts can be split up in multiple methods.

The first step provides the following changes:

  • More readable variables within the method
  • Split up the detection, whether it is a mail link, external url in a separate method
  • Split up the string explode functionality of "23 - myclass" into a separate method

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #50484: Generating URLs takes very longClosedBenni Mack2013-07-27

Actions
Related to TYPO3 Core - Bug #67199: Wrong parameter passer to linkhandler hookClosedFrancois Suter2015-05-29

Actions
Actions

Also available in: Atom PDF