PHP Class Contao\String

Usage: $short = String::substr($str, 32); $html = String::substrHtml($str, 32); $xhtml = String::toXhtml($html5);
Mostra file Open project: contao/core-bundle Class Usage Examples

Protected Properties

Property Type Description
$objInstance StringUtil Object instance (Singleton)

Public Methods

Method Description
__clone ( ) Prevent cloning of the object (Singleton)
getInstance ( ) : String Return the object instance (Singleton)

Protected Methods

Method Description
__construct ( ) Prevent direct instantiation (Singleton)

Method Details

__clone() final public method

Prevent cloning of the object (Singleton)
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. The String class is now static.
final public __clone ( )

__construct() protected method

Prevent direct instantiation (Singleton)
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. The String class is now static.
protected __construct ( )

getInstance() public static method

Return the object instance (Singleton)
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. The String class is now static.
public static getInstance ( ) : String
return String The object instance

Property Details

$objInstance protected_oe static_oe property

Object instance (Singleton)
protected static StringUtil,contao $objInstance
return StringUtil