class Twig_TemplateTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/test/Twig/Tests/TemplateTest.php \Twig_TemplateTest
Hierarchy
- class \Twig_Template implements Twig_TemplateInterface
- class \Twig_TemplateTest
Expanded class hierarchy of Twig_TemplateTest
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ TemplateTest.php, line 416
View source
class Twig_TemplateTest extends Twig_Template {
protected $useExtGetAttribute = false;
public function __construct(Twig_Environment $env, $useExtGetAttribute = false) {
parent::__construct($env);
$this->useExtGetAttribute = $useExtGetAttribute;
self::$cache = array();
}
public function getZero() {
return 0;
}
public function getEmpty() {
return '';
}
public function getString() {
return 'some_string';
}
public function getTrue() {
return true;
}
public function getTemplateName() {
}
public function getDebugInfo() {
return array();
}
protected function doGetParent(array $context) {
}
protected function doDisplay(array $context, array $blocks = array()) {
}
public function getAttribute($object, $item, array $arguments = array(), $type = Twig_Template::ANY_CALL, $isDefinedTest = false, $ignoreStrictCheck = false) {
if ($this->useExtGetAttribute) {
return twig_template_get_attributes($this, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);
}
else {
return parent::getAttribute($object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_Template:: |
protected | property | ||
Twig_Template:: |
protected static | property | ||
Twig_Template:: |
protected | property | ||
Twig_Template:: |
protected | property | ||
Twig_Template:: |
protected | property | ||
Twig_Template:: |
protected | property | ||
Twig_Template:: |
public | function |
Displays the template with the given context. Overrides Twig_TemplateInterface:: |
|
Twig_Template:: |
public | function | Displays a block. | |
Twig_Template:: |
public | function | Displays a parent block. | |
Twig_Template:: |
protected | function | ||
Twig_Template:: |
public | function | Returns all block names. | |
Twig_Template:: |
public | function | Returns all blocks. | |
Twig_Template:: |
final protected | function | Returns a variable from the context. | |
Twig_Template:: |
public | function |
Overrides Twig_TemplateInterface:: |
|
Twig_Template:: |
public | function | Returns the parent template. | |
Twig_Template:: |
public | function | Returns the template source code. | |
Twig_Template:: |
public | function | Returns whether a block exists or not. | |
Twig_Template:: |
public | function | ||
Twig_Template:: |
protected | function | ||
Twig_Template:: |
public | function |
Renders the template with the given context and returns it as string. Overrides Twig_TemplateInterface:: |
|
Twig_Template:: |
public | function | Renders a block. | |
Twig_Template:: |
public | function | Renders a parent block. | |
Twig_TemplateInterface:: |
constant | |||
Twig_TemplateInterface:: |
constant | |||
Twig_TemplateInterface:: |
constant | |||
Twig_TemplateTest:: |
protected | property | ||
Twig_TemplateTest:: |
protected | function |
Auto-generated method to display the template with the given context. Overrides Twig_Template:: |
|
Twig_TemplateTest:: |
protected | function |
Overrides Twig_Template:: |
|
Twig_TemplateTest:: |
public | function |
Returns the attribute value for a given array/object. Overrides Twig_Template:: |
|
Twig_TemplateTest:: |
public | function | ||
Twig_TemplateTest:: |
public | function | ||
Twig_TemplateTest:: |
public | function | ||
Twig_TemplateTest:: |
public | function |
Returns the template name. Overrides Twig_Template:: |
|
Twig_TemplateTest:: |
public | function | ||
Twig_TemplateTest:: |
public | function | ||
Twig_TemplateTest:: |
public | function |
Constructor. Overrides Twig_Template:: |