Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • cUriBuilderMR
  • ModRewrite
  • ModRewrite_ContentController
  • ModRewrite_ContentExpertController
  • ModRewrite_ContentTestController
  • ModRewrite_ControllerAbstract
  • ModRewriteBase
  • ModRewriteController
  • ModRewriteDebugger
  • ModRewriteTest
  • ModRewriteUrlStack
  • ModRewriteUrlUtil

Functions

  • mr_arrayValue
  • mr_buildGeneratedCode
  • mr_buildNewUrl
  • mr_conCopyArtLang
  • mr_conMoveArticles
  • mr_conSaveArticle
  • mr_conSyncArticle
  • mr_debugOutput
  • mr_getConfiguration
  • mr_getRequest
  • mr_header
  • mr_i18n
  • mr_loadConfiguration
  • mr_queryAndNextRecord
  • mr_removeMultipleChars
  • mr_requestCleanup
  • mr_runFrontendController
  • mr_setClientLanguageId
  • mr_setConfiguration
  • mr_strCopyCategory
  • mr_strMovedownCategory
  • mr_strMoveSubtree
  • mr_strMoveUpCategory
  • mr_strNewCategory
  • mr_strNewTree
  • mr_strRenameCategory
  • mr_strSyncCategory
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class ModRewriteUrlUtil

Mod Rewrite url utility class. Handles convertion of Urls from CONTENIDO core based url composition pattern to AMR (Advanced Mod Rewrite) url composition pattern and vice versa.

ModRewriteBase
Extended by ModRewriteUrlUtil
Package: Plugin\ModRewrite
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Murat Purc murat@purc.de
Located at plugins/mod_rewrite/classes/class.modrewriteurlutil.php
Methods summary
private
# __construct( )

Constructor, sets some AMR configuration related properties

Constructor, sets some AMR configuration related properties

private
# __clone( )

Prevent cloning

Prevent cloning

public static ModRewriteUrlUtil
# getInstance( )

Returns self instance (singleton pattern)

Returns self instance (singleton pattern)

Returns

ModRewriteUrlUtil
public string
# toContenidoUrlPath( string $urlPath )

Converts passed AMR url path to CONTENIDO url path.

Converts passed AMR url path to CONTENIDO url path.

Parameters

$urlPath
AMR url path

Returns

string
CONTENIDO url path
public string
# toModRewriteUrlPath( string $urlPath )

Converts passed CONTENIDO url path to AMR url path.

Converts passed CONTENIDO url path to AMR url path.

Parameters

$urlPath
CONTENIDO url path

Returns

string
AMR url path
private string
# _toUrlPath( string $urlPath, string $fromCatSep, string $toCatSep, string $fromCatWordSep, string $toCatWordSep, string $fromArtSep, string $toArtSep )

Converts passed url path to a another url path (CONTENIDO to AMR and vice versa).

Converts passed url path to a another url path (CONTENIDO to AMR and vice versa).

Parameters

$urlPath
Source url path
$fromCatSep
Source category seperator
$toCatSep
Destination category seperator
$fromCatWordSep
Source category word seperator
$toCatWordSep
Destination category word seperator
$fromArtSep
Source article seperator
$toArtSep
Destination article seperator

Returns

string
Destination url path
public string
# toContenidoUrlName( string $urlName )

Converts passed AMR url name to CONTENIDO url name.

Converts passed AMR url name to CONTENIDO url name.

Parameters

$urlName
AMR url name

Returns

string
CONTENIDO url name
public string
# toModRewriteUrlName( string $urlName )

Converts passed CONTENIDO url name to AMR url name.

Converts passed CONTENIDO url name to AMR url name.

Parameters

$urlName
CONTENIDO url name

Returns

string
AMR url name
private string
# _toUrlName( string $urlName, string $fromArtWordSep, string $toArtWordSep )

Converts passed url name to a another url name (CONTENIDO to AMR and vice versa).

Converts passed url name to a another url name (CONTENIDO to AMR and vice versa).

Parameters

$urlName
Source url name
$fromArtWordSep
Source article word seperator
$toArtWordSep
Destination article word seperator

Returns

string
Destination url name
public string
# toContenidoUrl( string $url )

Converts passed AMR url to CONTENIDO url.

Converts passed AMR url to CONTENIDO url.

Parameters

$url
AMR url

Returns

string
CONTENIDO url
public string
# toModRewriteUrl( string $url )

Converts passed AMR url to CONTENIDO url.

Converts passed AMR url to CONTENIDO url.

Parameters

$url
AMR url

Returns

string
CONTENIDO url
Methods inherited from ModRewriteBase
getConfig(), isEnabled(), setConfig(), setEnabled()
Properties summary
private static ModRewriteUrlUtil $_instance

Self instance (singleton implementation)

Self instance (singleton implementation)

#
private string $_catWordSep

CONTENIDO category word separator

CONTENIDO category word separator

# '-'
private string $_mrCatWordSep

AMR category word separator

AMR category word separator

#
private string $_catSep

CONTENIDO category separator

CONTENIDO category separator

# '/'
private string $_mrCatSep

AMR category separator

AMR category separator

#
private string $_artSep

CONTENIDO article separator

CONTENIDO article separator

# '/'
private string $_mrArtSep

AMR article separator

AMR article separator

#
private string $_artWordSep

CONTENIDO article word separator

CONTENIDO article word separator

# '-'
private string $_mrArtWordSep

AMR article word separator

AMR article word separator

#
private string $_mrExt

AMR extension used for articlenames (e. g. .html)

AMR extension used for articlenames (e. g. .html)

#
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen