コード例 #1
0
ファイル: Form.php プロジェクト: jave007/test
 /**
  * Application form constructor.
  */
 public function __construct(Nette\ComponentModel\IContainer $parent = NULL, $name = NULL)
 {
     parent::__construct();
     if ($parent !== NULL) {
         $parent->addComponent($this, $name);
     }
 }
コード例 #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);
     }
 }
コード例 #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);
     }
 }