Issue Feature Closed

#12340Enhance the tx_linkvalidator_linkTypes_Interface

Ernesto Baschny 01/17/11, 23:28 updated 12/10/13, 01:33

Description

The tx_linkvalidator_linkTypes_Interface currently only requires the method “checkLink()”.

But the processor and the module also calls these methods on the hook objects:

- getErrorParams()
- fetchType()
- getBrokenUrl()

So these need to be added to the interface to make sure they are available.

- setErrorParams() (from the abstract class) doesn’t seem to be part of that interface, so make that method “protected”

Also make sure that all members of these subclasses are “protected” (i.e. in tx_linkvalidator_linktypes_external = $url_reports + $url_error_params and tx_linkvalidator_linkTypes_LinkHandler = $tsconfig).

That would be important to have a stable and reliable API!

Thanks!

Cheers,
Ernesto

Reviews 1