Nette\ComponentModel\Component::__construct PHP Метод

__construct() публичный Метод

public __construct ( )
    public function __construct()
    {
        list($parent, $name) = func_get_args() + [NULL, NULL];
        if ($parent !== NULL) {
            $parent->addComponent($this, $name);
        } elseif (is_string($name)) {
            $this->name = $name;
        }
    }

Usage Example

Пример #1
0
 /**
  * @param \Venne\Forms\IFormFactory|\Closure $factory
  * @param string $title
  * @param null $type
  */
 public function __construct($factory, $title, $type = null)
 {
     parent::__construct();
     $this->factory = $factory;
     $this->title = $title;
     $this->type = $type;
 }
All Usage Examples Of Nette\ComponentModel\Component::__construct