Feature #32148

Task #33745: Integrate File Abstraction Layer

Integrate TCA Relation Service

Added by Steffen Ritter over 8 years ago. Updated almost 8 years ago.

Status:
Rejected
Priority:
Must have
Category:
Backend API
Target version:
-
Start date:
2011-11-29
Due date:
% Done:

0%

PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

Currently you need to resolve relations between TCA-tables yourself our use t3lib_loadDBGroup.

The interface for usage of load-db-group is not object-oriented designed, very hard to use, needs external preparation and knowledge about internals for usage.

To ease this up for developers add an "relation-service" for doing this in a more "object-orientated" way, with a single point of action.

In the first step this acts only as a wrapper for t3lib_loadDBgroup but in long term loaddbgroup should be migrated and reworked in a clean way into the the relation-service.

History

#1 Updated by Mr. Jenkins over 8 years ago

  • Status changed from Accepted to Under Review

Patch set 1 of change I8d0cd3fa302683e952f600041dad66e8a4a237bc has been pushed to the review server.
It is available at http://review.typo3.org/6969

#2 Updated by Mr. Jenkins over 8 years ago

Patch set 2 of change I8d0cd3fa302683e952f600041dad66e8a4a237bc has been pushed to the review server.
It is available at http://review.typo3.org/6969

#3 Updated by Mr. Jenkins over 8 years ago

Patch set 3 of change I8d0cd3fa302683e952f600041dad66e8a4a237bc has been pushed to the review server.
It is available at http://review.typo3.org/6969

#4 Updated by Oliver Hader over 8 years ago

  • Target version changed from 4.7.0-alpha1 to 4.7.0-alpha2

#5 Updated by Gerrit Code Review over 8 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6969

#6 Updated by Gerrit Code Review over 8 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6969

#7 Updated by Gerrit Code Review over 8 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6969

#8 Updated by Gerrit Code Review over 8 years ago

Patch set 7 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6969

#9 Updated by Gerrit Code Review over 8 years ago

Patch set 8 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6969

#10 Updated by Steffen Ritter over 8 years ago

there is now a test Extension availabe, which ships unittests and static Data for all relation variants definable via TCA: http://forge.typo3.org/projects/extension-tce_tutorial

#11 Updated by Gerrit Code Review over 8 years ago

Patch set 9 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6969

#12 Updated by Oliver Hader over 8 years ago

  • Target version changed from 4.7.0-alpha2 to 4.7.0-alpha3

#13 Updated by Oliver Hader about 8 years ago

  • Subject changed from Add objective wrapper for ancient t3lib_loaddbgroup to Integrate TCA Relation Service
  • Parent task set to #33745

#14 Updated by Oliver Hader about 8 years ago

The current implementation of the relation service is bound to table:field and optionally a table or field or any relation to be looked up. I think this is very complex for the basic scope of the service object. Thus, I'd like to suggest the following:

$service = new t3lib_tca_RelationService($table, $field);
$relation = $service->to($relatedTable, $relatedField);
$relatedRecods = $relation->getRecordsFor($record);
$relatedUids = $relation->getUidsFor($record);

So we have:

  • t3lib_tca_RelationService
  • t3lib_tca_Relation

#15 Updated by Oliver Hader about 8 years ago

  • Status changed from Under Review to On Hold

In favor of a simple functionality, this is on hold and not a requirement for the file abstraction layer...

#16 Updated by Steffen Ritter about 8 years ago

  • Target version changed from 4.7.0-alpha3 to 4.7.0-beta1

#17 Updated by Steffen Ritter about 8 years ago

  • Target version deleted (4.7.0-beta1)

#18 Updated by Oliver Hader almost 8 years ago

  • Status changed from On Hold to Rejected

Dropped...

Also available in: Atom PDF