Property | Type | Description | |
---|---|---|---|
$dbHandler | mixed | Connection. |
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. |
Method | Description | |
---|---|---|
deleteOrphanedUrls ( ) | Deletes all orphaned URLs. | |
getConnection ( ) : eZ\Publish\Core\Persistence\Database\DatabaseHandler | Returns the active connection. |
protected getConnection ( ) : eZ\Publish\Core\Persistence\Database\DatabaseHandler | ||
return | eZ\Publish\Core\Persistence\Database\DatabaseHandler |
public getIdUrlMap ( array $ids ) : array | ||
$ids | array | An array of URL ids |
return | array | An array of URLs, with ids as keys |
public getUrlIdMap ( array $urls ) : array | ||
$urls | array | An array of URLs |
return | array | An array of URL ids, with URLs as keys |
public setConnection ( mixed $dbHandler ) | ||
$dbHandler | mixed |