Ejemplo n.º 1
0
 /**
  * @param string $label
  *        	The label of the element
  * @param Customweb_Form_Control_IControl $control
  *        	The control of the element.
  * @param string $description
  *        	[optional] The description of the elment.
  * @param boolean $globalScope
  *        	[optional] Can the value be set per store?
  * @param boolean $inherited
  *        	[optional] Are values inherited?
  */
 public function __construct(Customweb_Form_Control_IControl $control, $description = '', $globalScope = true, $inherited = false)
 {
     $this->control = $control;
     $this->elementId = $control->getControlId() . '-element';
     $this->description = $description;
     $this->intention = Customweb_Form_Intention_Factory::getNullIntention();
     if (!$control instanceof Customweb_Form_Control_IEditableControl) {
         $this->globalScope = false;
     } else {
         $this->globalScope = (bool) $globalScope;
     }
     $this->inherited = (bool) $inherited;
 }
Ejemplo n.º 2
0
 /**
  * @param Customweb_Form_Control_IControl $control
  *        	The control of the element.
  */
 public function __construct(Customweb_Form_Control_IControl $control)
 {
     $this->control = $control;
     $this->elementId = $control->getControlId() . '-element';
     $this->intention = Customweb_Form_Intention_Factory::getNullIntention();
 }