PHP Class eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway\LegacyStorage

Inheritance: extends eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway
Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$dbHandler mixed Connection.

Public Methods

Method Description
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.

Protected Methods

Method Description
deleteOrphanedUrls ( ) Deletes all orphaned URLs.
getConnection ( ) : eZ\Publish\Core\Persistence\Database\DatabaseHandler Returns the active connection.

Method Details

deleteOrphanedUrls() protected method

Deletes all orphaned URLs.
protected deleteOrphanedUrls ( )

getConnection() protected method

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

getIdUrlMap() public method

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

getUrlIdMap() public method

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

insertUrl() public method

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

linkUrl() public method

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() public method

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

unlinkUrl() public method

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

Property Details

$dbHandler protected_oe property

Connection.
protected mixed $dbHandler
return mixed