public function __construct($label, $link, $img = '')
 {
     $full_label = '';
     if (!empty($img)) {
         $full_label = '<img src="' . $img . '" alt="' . $label . '" title="' . $label . '" />';
     } else {
         $full_label = $label;
     }
     parent::__construct('button', $full_label, '', 'window.location=' . TextHelper::to_js_string(Url::to_rel($link)), !empty($img) ? 'image' : '');
 }
 public function __construct($label, AjaxRequest $request, $css_class_image = '', array $fields, $condition = null)
 {
     $full_label = '';
     if (!empty($css_class_image)) {
         $full_label = '<i class="' . $css_class_image . '" title="' . $label . '"></i>';
     } else {
         $full_label = $label;
     }
     parent::__construct('button', $full_label, '', $this->build_ajax_request($request, $fields, $condition), 'image');
 }
 public function __construct($label, AjaxRequest $request, $img = '', array $fields, $condition = null)
 {
     $full_label = '';
     if (!empty($img)) {
         $full_label = '<img src="' . $img . '" alt="' . $label . '" title="' . $label . '" />';
     } else {
         $full_label = $label;
     }
     parent::__construct('button', $full_label, '', $this->build_ajax_request($request, $fields, $condition), !empty($img) ? 'image' : '');
 }
 public function __construct($label, $link, $css_class_image = '')
 {
     $full_label = '';
     if (!empty($css_class_image)) {
         $full_label = '<i class="' . $css_class_image . '" title="' . $label . '"></i>';
     } else {
         $full_label = $label;
     }
     parent::__construct('button', $full_label, '', 'window.location=' . TextHelper::to_js_string(Url::to_rel($link)), 'image');
 }
 public function __construct($value, $name, $onclick_action = '', $css_class = 'submit', $data_confirmation = '')
 {
     parent::__construct('submit', $value, $name, $onclick_action, $css_class, $data_confirmation);
 }
 public function __construct($value, $onclick_action = '', $name = '')
 {
     parent::__construct('button', $value, $name, $onclick_action);
 }