/** * Application form constructor. */ public function __construct(Nette\ComponentModel\IContainer $parent = NULL, $name = NULL) { parent::__construct(); if ($parent !== NULL) { $parent->addComponent($this, $name); } }
/** * Application form constructor. */ public function __construct(Nette\ComponentModel\IContainer $parent = NULL, $name = NULL) { parent::__construct(); $this->monitor('Nette\\Application\\UI\\Presenter'); if ($parent !== NULL) { $parent->addComponent($this, $name); } }
/** * Object cloning. */ public function __clone() { if ($this->parent === null) { return; } elseif ($this->parent instanceof Container) { $this->parent = $this->parent->_isCloning(); if ($this->parent === null) { // not cloning $this->refreshMonitors(0); } } else { $this->parent = null; $this->refreshMonitors(0); } }