Project

General

Profile

Actions

Feature #32148

closed

Task #33745: Integrate File Abstraction Layer

Integrate TCA Relation Service

Added by Steffen Ritter over 12 years ago. Updated about 12 years ago.

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

0%

Estimated time:
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.

Actions #1

Updated by Mr. Jenkins over 12 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

Actions #2

Updated by Mr. Jenkins over 12 years ago

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

Actions #3

Updated by Mr. Jenkins over 12 years ago

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

Actions #4

Updated by Oliver Hader over 12 years ago

  • Target version changed from 4.7.0-alpha1 to 4.7.0-alpha2
Actions #5

Updated by Gerrit Code Review over 12 years ago

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

Actions #6

Updated by Gerrit Code Review over 12 years ago

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

Actions #7

Updated by Gerrit Code Review over 12 years ago

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

Actions #8

Updated by Gerrit Code Review over 12 years ago

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

Actions #9

Updated by Gerrit Code Review over 12 years ago

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

Actions #10

Updated by Steffen Ritter over 12 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

Actions #11

Updated by Gerrit Code Review over 12 years ago

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

Actions #12

Updated by Oliver Hader over 12 years ago

  • Target version changed from 4.7.0-alpha2 to 4.7.0-alpha3
Actions #13

Updated by Oliver Hader about 12 years ago

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

Updated by Oliver Hader about 12 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
Actions #15

Updated by Oliver Hader about 12 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...

Actions #16

Updated by Steffen Ritter about 12 years ago

  • Target version changed from 4.7.0-alpha3 to 4.7.0-beta1
Actions #17

Updated by Steffen Ritter about 12 years ago

  • Target version deleted (4.7.0-beta1)
Actions #18

Updated by Oliver Hader about 12 years ago

  • Status changed from On Hold to Rejected

Dropped...

Actions

Also available in: Atom PDF