Exemplo n.º 1
0
 /**
  * @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();
     }
 }
Exemplo n.º 2
0
 /**
  * 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();
 }
Exemplo n.º 3
0
 public function __construct(Customweb_DependencyInjection_IContainer $container)
 {
     $this->container = $container;
     $this->id = Customweb_Util_Rand::getUuid();
 }