eZPublishCommunityProject  2013.4
eZ\Publish\Core\Persistence\Cache\UrlAliasHandler Class Reference
+ Inheritance diagram for eZ\Publish\Core\Persistence\Cache\UrlAliasHandler:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Cache\UrlAliasHandler:

Public Member Functions

 createCustomUrlAlias ($locationId, $path, $forwarding=false, $languageCode=null, $alwaysAvailable=false)
 
 createGlobalUrlAlias ($resource, $path, $forwarding=false, $languageCode=null, $alwaysAvailable=false)
 
 listGlobalURLAliases ($languageCode=null, $offset=0, $limit=-1)
 
 listURLAliasesForLocation ($locationId, $custom=false)
 
 loadUrlAlias ($id)
 
 locationCopied ($locationId, $oldParentId, $newParentId)
 Notifies the underlying engine that a location has moved. More...
 
 locationDeleted ($locationId)
 
 locationMoved ($locationId, $oldParentId, $newParentId)
 Notifies the underlying engine that a location has moved. More...
 
 lookup ($url)
 Looks up a url alias for the given url. More...
 
 publishUrlAliasForLocation ($locationId, $parentLocationId, $name, $languageCode, $alwaysAvailable=false)
 
 removeURLAliases (array $urlAliases)
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Cache\AbstractHandler
 __construct (CacheService $cache, PersistenceFactory $persistenceFactory, PersistenceLogger $logger)
 Setups current handler with everything needed. More...
 

Public Attributes

const NOT_FOUND = 0
 Constant used for storing not found results for lookup() More...
 

Additional Inherited Members

- Protected Attributes inherited from eZ\Publish\Core\Persistence\Cache\AbstractHandler
 $cache
 
 $logger
 
 $persistenceFactory
 

Detailed Description

See Also
eZ

Member Function Documentation

eZ\Publish\Core\Persistence\Cache\UrlAliasHandler::createCustomUrlAlias (   $locationId,
  $path,
  $forwarding = false,
  $languageCode = null,
  $alwaysAvailable = false 
)
See Also
eZ::createCustomUrlAlias

Implements eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler.

eZ\Publish\Core\Persistence\Cache\UrlAliasHandler::createGlobalUrlAlias (   $resource,
  $path,
  $forwarding = false,
  $languageCode = null,
  $alwaysAvailable = false 
)
See Also
eZ::createGlobalUrlAlias

Implements eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler.

eZ\Publish\Core\Persistence\Cache\UrlAliasHandler::listGlobalURLAliases (   $languageCode = null,
  $offset = 0,
  $limit = -1 
)
See Also
eZ::listGlobalURLAliases

Implements eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler.

eZ\Publish\Core\Persistence\Cache\UrlAliasHandler::listURLAliasesForLocation (   $locationId,
  $custom = false 
)
See Also
eZ::listURLAliasesForLocation

Implements eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler.

eZ\Publish\Core\Persistence\Cache\UrlAliasHandler::loadUrlAlias (   $id)
eZ\Publish\Core\Persistence\InMemory\UrlAliasHandler::locationCopied (   $locationId,
  $oldParentId,
  $newParentId 
)

Notifies the underlying engine that a location has moved.

See Also
eZ::locationCopied

This method triggers the creation of the autogenerated aliases for the copied locations

Parameters
mixed$locationId
mixed$oldParentId
mixed$newParentId

Implements eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler.

eZ\Publish\Core\Persistence\Cache\UrlAliasHandler::locationDeleted (   $locationId)
See Also
eZ::locationDeleted

Implements eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler.

eZ\Publish\Core\Persistence\InMemory\UrlAliasHandler::locationMoved (   $locationId,
  $oldParentId,
  $newParentId 
)

Notifies the underlying engine that a location has moved.

See Also
eZ::locationMoved

This method triggers the change of the autogenerated aliases

Parameters
mixed$locationId
mixed$oldParentId
mixed$newParentId

Implements eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler.

eZ\Publish\Core\Persistence\InMemory\UrlAliasHandler::lookup (   $url)

Looks up a url alias for the given url.

See Also
eZ::lookup
Exceptions
\eZ\Publish\API\Repository\Exceptions\NotFoundException
Parameters
string$url
Returns

Implements eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler.

eZ\Publish\Core\Persistence\Cache\UrlAliasHandler::publishUrlAliasForLocation (   $locationId,
  $parentLocationId,
  $name,
  $languageCode,
  $alwaysAvailable = false 
)
See Also
eZ::publishUrlAliasForLocation

Implements eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler.

eZ\Publish\Core\Persistence\Cache\UrlAliasHandler::removeURLAliases ( array  $urlAliases)
See Also
eZ::removeURLAliases

Implements eZ\Publish\SPI\Persistence\Content\UrlAlias\Handler.

Member Data Documentation

const eZ\Publish\Core\Persistence\Cache\UrlAliasHandler::NOT_FOUND = 0

Constant used for storing not found results for lookup()


The documentation for this class was generated from the following files: