Exemple #1
0
 /**
  * Constructor.
  * 
  * @param string $controlName Name of the control
  * @param string $htmlContent HTML content to show
  */
 public function __construct($controlName, $htmlContent)
 {
     parent::__construct($controlName);
     if (is_string($htmlContent)) {
         $this->htmlContent = new Customweb_I18n_LocalizableString($htmlContent);
     } elseif ($htmlContent instanceof Customweb_I18n_LocalizableString) {
         $this->htmlContent = $htmlContent;
     }
 }
 public function getValidators()
 {
     $validators = parent::getValidators();
     foreach ($this->getSubControls() as $control) {
         foreach ($control->getValidators() as $validator) {
             $validators[] = $validator;
         }
     }
     return $validators;
 }
 /**
  * Constructor.
  * 
  * @param string $controlName Name of the control
  * @param string $htmlContent HTML content to show
  */
 public function __construct($controlName, $htmlContent)
 {
     parent::__construct($controlName);
     $this->htmlContent = $htmlContent;
 }