PHP Класс eZ\Publish\Core\FieldType\RichText\RichTextStorage\Gateway

Handles data that is not directly included in raw XML value from the field (i.e. URLs).
Наследование: extends eZ\Publish\Core\FieldType\StorageGateway
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$urlGateway eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

getContentIds() абстрактный публичный Метод

Non-existent ids are ignored.
abstract public getContentIds ( array $remoteIds ) : array
$remoteIds array An array of Content remote ids
Результат array An array of Content ids, with remote ids as keys

getIdUrlMap() публичный Метод

Non-existent ids are ignored.
public getIdUrlMap ( array $ids ) : array
$ids array An array of URL ids
Результат array An array of URLs, with ids as keys

getUrlIdMap() публичный Метод

Non-existent URLs are ignored.
public getUrlIdMap ( array $urls ) : array
$urls array An array of URLs
Результат array An array of URL ids, with URLs as keys

insertUrl() публичный Метод

Inserts a new $url and returns its id.
public insertUrl ( string $url ) : integer | string
$url string The URL to insert in the database
Результат integer | string

linkUrl() публичный Метод

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() публичный Метод

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

Описание свойств

$urlGateway защищенное свойство

protected Gateway,eZ\Publish\Core\FieldType\Url\UrlStorage $urlGateway
Результат eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway