PHP 클래스 eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage

상속: extends eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$dbHandler mixed Connection.

공개 메소드들

메소드 설명
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 Inserts a new $url and returns its id.
linkUrl ( integer $urlId, integer $fieldId, integer $versionNo ) Creates link to URL with $urlId for field with $fieldId in $versionNo.
setConnection ( mixed $dbHandler ) Set database handler for this gateway.
unlinkUrl ( integer $fieldId, integer $versionNo ) Removes link to URL for $fieldId in $versionNo and cleans up possibly orphaned URLs.

보호된 메소드들

메소드 설명
deleteOrphanedUrls ( ) Deletes all orphaned URLs.
getConnection ( ) : eZ\Publish\Core\Persistence\Database\DatabaseHandler Returns the active connection.

메소드 상세

deleteOrphanedUrls() 보호된 메소드

Deletes all orphaned URLs.
protected deleteOrphanedUrls ( )

getConnection() 보호된 메소드

Returns the active connection.
protected getConnection ( ) : eZ\Publish\Core\Persistence\Database\DatabaseHandler
리턴 eZ\Publish\Core\Persistence\Database\DatabaseHandler

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
$url string The URL to insert in the database
리턴 integer

linkUrl() 공개 메소드

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

setConnection() 공개 메소드

Set database handler for this gateway.
public setConnection ( mixed $dbHandler )
$dbHandler mixed

unlinkUrl() 공개 메소드

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

프로퍼티 상세

$dbHandler 보호되어 있는 프로퍼티

Connection.
protected mixed $dbHandler
리턴 mixed