class Twig_Markup in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Markup.php \Twig_Markup
Marks a content as safe.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Twig_Markup implements \Countable
Expanded class hierarchy of Twig_Markup
1 string reference to 'Twig_Markup'
- Twig_Tests_TemplateTest::testGetAttributeWithTemplateAsObject in vendor/
twig/ twig/ test/ Twig/ Tests/ TemplateTest.php - @dataProvider getGetAttributeWithTemplateAsObject
File
- vendor/
twig/ twig/ lib/ Twig/ Markup.php, line 17
View source
class Twig_Markup implements Countable {
protected $content;
protected $charset;
public function __construct($content, $charset) {
$this->content = (string) $content;
$this->charset = $charset;
}
public function __toString() {
return $this->content;
}
public function count() {
return function_exists('mb_get_info') ? mb_strlen($this->content, $this->charset) : strlen($this->content);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_Markup:: |
protected | property | ||
Twig_Markup:: |
protected | property | ||
Twig_Markup:: |
public | function | ||
Twig_Markup:: |
public | function | ||
Twig_Markup:: |
public | function |