public function __construct($name, Set $set = null, $bean = null) { parent::__construct($name, $set, $bean); if ($bean !== null) { $this->htmlInputTemplate = $bean->{$this->_('htmlInputTemplate')}; $this->linkedSetId = $bean->{$this->_('linkedSetId')}; } }