PHP Class eZ\Publish\Core\FieldType\RichText\RichTextStorage\Gateway

Handles data that is not directly included in raw XML value from the field (i.e. URLs).
Inheritance: extends eZ\Publish\Core\FieldType\StorageGateway
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$urlGateway eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway

Méthodes publiques

Méthode Description
__construct ( Gateway $urlGateway )
getContentIds ( array $remoteIds ) : array Returns a list of Content ids for a list of remote ids.
getIdUrlMap ( array $ids ) : array Returns a list of URLs for a list of URL ids.
getUrlIdMap ( array $urls ) : array Returns a list of URL ids for a list of URLs.
insertUrl ( string $url ) : integer | string Inserts a new $url and returns its id.
linkUrl ( integer | string $urlId, integer | string $fieldId, integer $versionNo ) Creates link to URL with $urlId for field with $fieldId in $versionNo.
unlinkUrl ( integer | string $fieldId, integer $versionNo ) Removes link to URL for $fieldId in $versionNo and cleans up possibly orphaned URLs.

Method Details

__construct() public méthode

public __construct ( Gateway $urlGateway )
$urlGateway eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway

getContentIds() abstract public méthode

Non-existent ids are ignored.
abstract public getContentIds ( array $remoteIds ) : array
$remoteIds array An array of Content remote ids
Résultat array An array of Content ids, with remote ids as keys

getIdUrlMap() public méthode

Non-existent ids are ignored.
public getIdUrlMap ( array $ids ) : array
$ids array An array of URL ids
Résultat array An array of URLs, with ids as keys

getUrlIdMap() public méthode

Non-existent URLs are ignored.
public getUrlIdMap ( array $urls ) : array
$urls array An array of URLs
Résultat array An array of URL ids, with URLs as keys

insertUrl() public méthode

Inserts a new $url and returns its id.
public insertUrl ( string $url ) : integer | string
$url string The URL to insert in the database
Résultat integer | string

linkUrl() public méthode

Creates link to URL with $urlId for field with $fieldId in $versionNo.
public linkUrl ( integer | string $urlId, integer | string $fieldId, integer $versionNo )
$urlId integer | string
$fieldId integer | string
$versionNo integer

unlinkUrl() public méthode

Removes link to URL for $fieldId in $versionNo and cleans up possibly orphaned URLs.
public unlinkUrl ( integer | string $fieldId, integer $versionNo )
$fieldId integer | string
$versionNo integer

Property Details

$urlGateway protected_oe property

protected Gateway,eZ\Publish\Core\FieldType\Url\UrlStorage $urlGateway
Résultat eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway