function WAddFromListRepeatableComponentCollection() { parent::WRepeatableComponentCollection(); $this->_addButton = WChooseOptionButton::withLabel($this->_addLabel); $this->_addButton->setParent($this); }
/** * virtual constructor * @param string $event * @param string $label * @access public * @return ref object * @static */ static function withEventAndLabel($event, $label) { $obj = new WChooseOptionButton(); $obj->setEventAndLabel($event, $label); return $obj; }