PHP 클래스 FOF30\Utils\StringHelper

파일 보기 프로젝트 열기: akeeba/fof 1 사용 예제들

공개 메소드들

메소드 설명
toASCII ( string $value ) : string Convert common northern European languages' letters into plain ASCII. This is a rudimentary transliteration.
toBool ( string $string ) : boolean Convert a string to a boolean.
toSlug ( string $value ) : string Convert a string into a slug (alias), suitable for use in URLs. Please note that transliteration support is rudimentary at this stage.

메소드 상세

toASCII() 공개 정적인 메소드

Convert common northern European languages' letters into plain ASCII. This is a rudimentary transliteration.
사용 중단: 3.0 Use JFactory::getLanguage()->transliterate instead
public static toASCII ( string $value ) : string
$value string The value to convert to ASCII
리턴 string The converted string

toBool() 공개 정적인 메소드

Convert a string to a boolean.
public static toBool ( string $string ) : boolean
$string string The string.
리턴 boolean The converted string

toSlug() 공개 정적인 메소드

Convert a string into a slug (alias), suitable for use in URLs. Please note that transliteration support is rudimentary at this stage.
사용 중단: 3.0 Use \JApplicationHelper::stringURLSafe instead
public static toSlug ( string $value ) : string
$value string A string to convert to slug
리턴 string The slug