Lines Matching refs:name

53     public function getSource($name)  argument
59 if ($loader instanceof ExistsLoaderInterface && !$loader->exists($name)) {
64 return $loader->getSource($name);
70 …throw new LoaderError(sprintf('Template "%s" is not defined%s.', $name, $exceptions ? ' ('.implode…
73 public function getSourceContext($name) argument
77 if ($loader instanceof ExistsLoaderInterface && !$loader->exists($name)) {
83 return $loader->getSourceContext($name);
86 return new Source($loader->getSource($name), $name);
92 …throw new LoaderError(sprintf('Template "%s" is not defined%s.', $name, $exceptions ? ' ('.implode…
95 public function exists($name) argument
97 $name = (string) $name;
99 if (isset($this->hasSourceCache[$name])) {
100 return $this->hasSourceCache[$name];
105 if ($loader->exists($name)) {
106 return $this->hasSourceCache[$name] = true;
114 $loader->getSourceContext($name);
116 $loader->getSource($name);
119 return $this->hasSourceCache[$name] = true;
124 return $this->hasSourceCache[$name] = false;
127 public function getCacheKey($name) argument
131 if ($loader instanceof ExistsLoaderInterface && !$loader->exists($name)) {
136 return $loader->getCacheKey($name);
142 …throw new LoaderError(sprintf('Template "%s" is not defined%s.', $name, $exceptions ? ' ('.implode…
145 public function isFresh($name, $time) argument
149 if ($loader instanceof ExistsLoaderInterface && !$loader->exists($name)) {
154 return $loader->isFresh($name, $time);
160 …throw new LoaderError(sprintf('Template "%s" is not defined%s.', $name, $exceptions ? ' ('.implode…