Lines Matching refs:block

132         $block = new $className($name, isset($tplIndex) ? $tplIndex : $this->tplIndex);
134 $block->child = $this->childRoot[ $name ];
137 $this->childRoot[ $name ] = $block;
141 while ($block->child && $block->tplIndex <= $block->child->tplIndex) {
142 $block->child = $block->child->child;
144 $this->process($tpl, $block);
156 public function process(Smarty_Internal_Template $tpl, Smarty_Internal_Block $block, argument
159 if ($block->hide && !isset($block->child)) {
162 if (isset($block->child) && $block->child->hide && !isset($block->child->child)) {
163 $block->child = null;
165 $block->parent = $parent;
166 if ($block->append && !$block->prepend && isset($parent)) {
167 $this->callParent($tpl, $block);
169 …if ($block->callsChild || !isset($block->child) || ($block->child->hide && !isset($block->child->c…
170 $this->callBlock($block, $tpl);
172 $this->process($tpl, $block->child, $block);
174 if ($block->prepend && isset($parent)) {
175 $this->callParent($tpl, $block);
176 if ($block->append) {
177 if ($block->callsChild || !isset($block->child) ||
178 ($block->child->hide && !isset($block->child->child))
180 $this->callBlock($block, $tpl);
182 $this->process($tpl, $block->child, $block);
186 $block->parent = null;
195 public function callChild(Smarty_Internal_Template $tpl, Smarty_Internal_Block $block) argument
197 if (isset($block->child)) {
198 $this->process($tpl, $block->child, $block);
212 …public function callParent(Smarty_Internal_Template $tpl, Smarty_Internal_Block $block, $name = nu… argument
215 $block = $block->parent;
216 while (isset($block)) {
217 if (isset($block->subBlocks[ $name ])) {
219 $block = $block->parent;
223 } else if (isset($block->parent)) {
224 $this->callBlock($block->parent, $tpl);
226 … used in parent template '{$tpl->inheritance->sources[$block->tplIndex]->filepath}' block '{$block
234 public function callBlock(Smarty_Internal_Block $block, Smarty_Internal_Template $tpl) argument
237 $tpl->source = $this->sources[ $block->tplIndex ];
238 $block->callBlock($tpl);