PHP Class eZ\Publish\Core\FieldType\RichText\InternalLinkValidator

Exibir arquivo Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
__construct ( eZ\Publish\API\Repository\ContentService $contentService, eZ\Publish\API\Repository\LocationService $locationService )
validate ( string $scheme, string $id ) : boolean Validates following link formats: 'ezcontent://', 'ezremote://', 'ezlocation://'.

Method Details

__construct() public method

public __construct ( eZ\Publish\API\Repository\ContentService $contentService, eZ\Publish\API\Repository\LocationService $locationService )
$contentService eZ\Publish\API\Repository\ContentService
$locationService eZ\Publish\API\Repository\LocationService

validate() public method

Validates following link formats: 'ezcontent://', 'ezremote://', 'ezlocation://'.
public validate ( string $scheme, string $id ) : boolean
$scheme string
$id string
return boolean