PHP Class Craft\RetourService

Inheritance: extends craft\BaseApplicationComponent
Afficher le fichier Open project: nystudio107/retour

Protected Properties

Свойство Type Description
$cachedEntryRedirects
$cachedStaticRedirects
$cachedStatistics

Méthodes publiques

Méthode Description
clearStatistics ( )
createRedirect ( $redirectsModel )
deleteRedirectByElementId ( integer $elementId, string $locale )
findRedirectMatch ( string $url ) : mixed
getAllEntryRedirects ( ) : Array
getAllStaticRedirects ( ) : Array
getAllStatistics ( ) : array
getLocalizedUris ( $element = null ) : array Returns a list of localized URIs for the passed in element
getMatchesList ( ) : mixed
getPluginName ( ) : string
getRecentStatistics ( $days = 1, $handled ) : array
getRedirectByElementId ( integer $elementId, string $locale ) : Mixed
getRedirectById ( integer $id ) : Mixed
getRedirectByRedirectSrcUrl ( string $srcUrl, string $locale ) : Mixed
getRedirectFromCache ( $url ) : mixed
incrementRedirectHitCount ( &$redirect )
incrementStatistics ( $url, $handled = false )
lookupRedirect ( string $url, mixed $redirects ) : mixed
saveRedirect ( $redirectsModel )
saveRedirectToCache ( $url, mixed $redirect )
saveStaticRedirect ( Retour_StaticRedirectsRecord $record ) : [type] [saveStaticRedirect description]

Method Details

clearStatistics() public méthode

public clearStatistics ( )

createRedirect() public méthode

public createRedirect ( $redirectsModel )

deleteRedirectByElementId() public méthode

public deleteRedirectByElementId ( integer $elementId, string $locale )
$elementId integer The associated elementId
$locale string The locale

findRedirectMatch() public méthode

public findRedirectMatch ( string $url ) : mixed
$url string the url to match
Résultat mixed the redirect array

getAllEntryRedirects() public méthode

public getAllEntryRedirects ( ) : Array
Résultat Array All of the entry redirects

getAllStaticRedirects() public méthode

public getAllStaticRedirects ( ) : Array
Résultat Array All of the static redirects

getAllStatistics() public méthode

public getAllStatistics ( ) : array
Résultat array All of the statistics

getLocalizedUris() public méthode

Returns a list of localized URIs for the passed in element
public getLocalizedUris ( $element = null ) : array
Résultat array an array of paths

getMatchesList() public méthode

public getMatchesList ( ) : mixed
Résultat mixed Returns the list of matching schemes

getPluginName() public méthode

public getPluginName ( ) : string
Résultat string The name of the plugin

getRecentStatistics() public méthode

public getRecentStatistics ( $days = 1, $handled ) : array
$days The number of days to get
Résultat array Recent statistics

getRedirectByElementId() public méthode

public getRedirectByElementId ( integer $elementId, string $locale ) : Mixed
$elementId integer The associated elementId
$locale string The locale
Résultat Mixed The resulting Redirect

getRedirectById() public méthode

public getRedirectById ( integer $id ) : Mixed
$id integer The redirect's id
Résultat Mixed The resulting Redirect

getRedirectByRedirectSrcUrl() public méthode

public getRedirectByRedirectSrcUrl ( string $srcUrl, string $locale ) : Mixed
$srcUrl string the redirect's redirectSrcUrl
$locale string The locale
Résultat Mixed The resulting Redirect

getRedirectFromCache() public méthode

public getRedirectFromCache ( $url ) : mixed
Résultat mixed The redirect

incrementRedirectHitCount() public méthode

public incrementRedirectHitCount ( &$redirect )

incrementStatistics() public méthode

public incrementStatistics ( $url, $handled = false )
$url The 404 url

lookupRedirect() public méthode

public lookupRedirect ( string $url, mixed $redirects ) : mixed
$url string the url to match
$redirects mixed an array of redirects to look through
Résultat mixed the redirect array

saveRedirect() public méthode

public saveRedirect ( $redirectsModel )

saveRedirectToCache() public méthode

public saveRedirectToCache ( $url, mixed $redirect )
$redirect mixed The redirect

saveStaticRedirect() public méthode

[saveStaticRedirect description]
public saveStaticRedirect ( Retour_StaticRedirectsRecord $record ) : [type]
$record Retour_StaticRedirectsRecord the static redirect record to save
Résultat [type]

Property Details

$cachedEntryRedirects protected_oe property

protected $cachedEntryRedirects

$cachedStaticRedirects protected_oe property

protected $cachedStaticRedirects

$cachedStatistics protected_oe property

protected $cachedStatistics