PHP Класс DmitryDulepov\Realurl\Utility

Автор: Dmitry Dulepov ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$configuration DmitryDulepov\Realurl\Configuration\ConfigurationReader
$csConvertor TYPO3\CMS\Core\Charset\CharsetConverter

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

checkAndPerformRequiredUpdates() публичный статический Метод

Checks if required update should run and runs it if necessary.
public static checkAndPerformRequiredUpdates ( ) : void
Результат void

convertToSafeString() публичный Метод

The result is not url-encoded.
public convertToSafeString ( string $processedTitle, string $spaceCharacter = '-', boolean $strToLower = true ) : string
$processedTitle string
$spaceCharacter string
$strToLower boolean
Результат string

getCache() публичный Метод

Returns the cache to use.
public getCache ( ) : DmitryDulepov\Realurl\Cache\CacheInterface
Результат DmitryDulepov\Realurl\Cache\CacheInterface

getCurrentHost() публичный Метод

Obtains the current host.
public getCurrentHost ( ) : string
Результат string

Описание свойств

$configuration защищенное свойство

protected ConfigurationReader,DmitryDulepov\Realurl\Configuration $configuration
Результат DmitryDulepov\Realurl\Configuration\ConfigurationReader

$csConvertor защищенное свойство

protected CharsetConverter,TYPO3\CMS\Core\Charset $csConvertor
Результат TYPO3\CMS\Core\Charset\CharsetConverter