/** * @param Customweb_IForm $form */ public function __construct(Customweb_IForm $form = null) { if ($form !== null) { $this->setButtons($form->getButtons())->setElementGroups($form->getElementGroups())->setId($form->getId())->setMachineName($form->getMachineName())->setRequestMethod($form->getRequestMethod())->setTargetUrl($form->getTargetUrl())->setTargetWindow($form->getTargetWindow())->setTitle($form->getTitle()); } else { $this->id = Customweb_Util_Rand::getUuid(); } }
/** * Constructor of the class * * @param string $controlName The name of the control / field name. */ public function __construct($controlName) { $this->controlName = $controlName; $this->controlId = Customweb_Util_Rand::getUuid(); }
public function __construct(Customweb_DependencyInjection_IContainer $container) { $this->container = $container; $this->id = Customweb_Util_Rand::getUuid(); }