/** * 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; } }
/** * Constructor * * @param string $controlName * @param array $controls Subcontrols */ public function __construct($controlName, array $controls) { parent::__construct($controlName); $this->controls = $controls; }
/** * 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; }