/** * Form constructor. * @param bool|false $name */ public function __construct($name = false) { foreach ($this->options() as $k => $v) { $this->options[$k] = $v; } if (!$name) { $name = \TAO::unchunkCap(str_replace('TAO\\Forms\\', '', get_class($this))); } $this->name = $name; $infoblock = $this->infoblock(); if (is_string($infoblock) && \TAO::getInfoblockId($infoblock)) { $this->infoblock = \TAO::getInfoblock($infoblock); } }