Class SnippetHelper (namespace Nette\Templates)


Control snippet template helper.

Object
   |
   --SnippetHelper
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Templates/Filters/SnippetHelper.php (line 34)
Public Method Summary
static SnippetHelper
create ($control, [string $name = NULL], [string $tag = 'div'])
Starts conditional snippet rendering. Returns SnippetHelper object if snippet was started.
void
finish ()
Finishes and saves the snippet.
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary
static bool $outputAllowed TRUE

line 37


Method Details

line 60

create

public static SnippetHelper create ($control, [string $name = NULL], [string $tag = 'div'])

Starts conditional snippet rendering. Returns SnippetHelper object if snippet was started.

Input
$control control
string $name snippet name
string $tag start element
Output
SnippetHelper  

line 88

finish

public void finish ()

Finishes and saves the snippet.

Output
void