public function __construct($value = '') { if (empty($value)) { $value = LangLoader::get_message('submit', 'main'); } parent::__construct($value, 'submit'); }
public function __construct($value, $image, $name, $onclick_action = '', $data_confirmation = '') { $new_value = '<img src="' . $image . '" alt="' . $value . '" title="' . $value . '" />'; parent::__construct($new_value, $name, $onclick_action, 'image', $data_confirmation); }
public function __construct($value, $css_class_image, $name, $onclick_action = '', $data_confirmation = '') { $new_value = '<i class="' . $css_class_image . '" title="' . $value . '"></i>'; parent::__construct($new_value, $name, $onclick_action, 'image', $data_confirmation); }