예제 #1
0
 public function getSnippetId(Nette\Application\UI\Control $control, $snippetName = NULL)
 {
     return 'snippet-' . $control->getUniqueId() . '-' . $snippetName;
 }
예제 #2
0
 public function getUniqueId()
 {
     return $this->control->getUniqueId();
 }
예제 #3
0
 public function getSnippetId(NetteUI\Control $control, $snippetName = NULL)
 {
     return ($control instanceof NetteUI\Presenter ? 'p' : $control->getUniqueId()) . ($snippetName === NULL || strlen($snippetName) === 0 ? '' : '-' . $snippetName);
 }