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
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$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