PHP Class DmitryDulepov\Realurl\Utility

Author: Dmitry Dulepov ([email protected])
Show file Open project: dmitryd/typo3-realurl Class Usage Examples

Protected Properties

Property Type Description
$configuration DmitryDulepov\Realurl\Configuration\ConfigurationReader
$csConvertor TYPO3\CMS\Core\Charset\CharsetConverter

Public Methods

Method Description
__construct ( ConfigurationReader $configuration ) Initializes the class.
checkAndPerformRequiredUpdates ( ) : void Checks if required update should run and runs it if necessary.
convertToSafeString ( string $processedTitle, string $spaceCharacter = '-', boolean $strToLower = true ) : string Converts a given string to a string that can be used as a URL segment.
getCache ( ) : DmitryDulepov\Realurl\Cache\CacheInterface Returns the cache to use.
getCurrentHost ( ) : string Obtains the current host.

Method Details

__construct() public method

Initializes the class.
public __construct ( ConfigurationReader $configuration )
$configuration DmitryDulepov\Realurl\Configuration\ConfigurationReader

checkAndPerformRequiredUpdates() public static method

Checks if required update should run and runs it if necessary.
public static checkAndPerformRequiredUpdates ( ) : void
return void

convertToSafeString() public method

The result is not url-encoded.
public convertToSafeString ( string $processedTitle, string $spaceCharacter = '-', boolean $strToLower = true ) : string
$processedTitle string
$spaceCharacter string
$strToLower boolean
return string

getCache() public method

Returns the cache to use.
public getCache ( ) : DmitryDulepov\Realurl\Cache\CacheInterface
return DmitryDulepov\Realurl\Cache\CacheInterface

getCurrentHost() public method

Obtains the current host.
public getCurrentHost ( ) : string
return string

Property Details

$configuration protected property

protected ConfigurationReader,DmitryDulepov\Realurl\Configuration $configuration
return DmitryDulepov\Realurl\Configuration\ConfigurationReader

$csConvertor protected property

protected CharsetConverter,TYPO3\CMS\Core\Charset $csConvertor
return TYPO3\CMS\Core\Charset\CharsetConverter