PHP Класс Contao\String

Usage: $short = String::substr($str, 32); $html = String::substrHtml($str, 32); $xhtml = String::toXhtml($html5);
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$objInstance StringUtil Object instance (Singleton)

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

Метод Описание
__clone ( ) Prevent cloning of the object (Singleton)
getInstance ( ) : String Return the object instance (Singleton)

Защищенные методы

Метод Описание
__construct ( ) Prevent direct instantiation (Singleton)

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

__clone() закрытый публичный Метод

Prevent cloning of the object (Singleton)
Устаревший: Deprecated since Contao 4.0, to be removed in Contao 5.0. The String class is now static.
final public __clone ( )

__construct() защищенный Метод

Prevent direct instantiation (Singleton)
Устаревший: Deprecated since Contao 4.0, to be removed in Contao 5.0. The String class is now static.
protected __construct ( )

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

Return the object instance (Singleton)
Устаревший: Deprecated since Contao 4.0, to be removed in Contao 5.0. The String class is now static.
public static getInstance ( ) : String
Результат String The object instance

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

$objInstance защищенное статическое свойство

Object instance (Singleton)
protected static StringUtil,contao $objInstance
Результат StringUtil