Exemplo n.º 1
0
 /**
  * Application form constructor.
  */
 public function __construct(Nette\ComponentModel\IContainer $parent = NULL, $name = NULL)
 {
     parent::__construct();
     if ($parent !== NULL) {
         $parent->addComponent($this, $name);
     }
 }
Exemplo n.º 2
0
 /**
  * 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);
     }
 }
Exemplo n.º 3
0
 /**
  * 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);
     }
 }