Пример #1
0
 public function __construct($fieldname = null, $fieldLabel = null)
 {
     parent::__construct($fieldname, $fieldLabel);
     $this->setFrontendButtonText(trlKwfStatic('Browse') . '...');
     $this->setAllowBlank(true);
     //standardwert für getAllowBlank
     $this->setAllowOnlyImages(false);
     $this->setMaxResolution(false);
     $this->setDropText(trlKwfStatic('Drop your file here'));
     $this->setXtype('kwf.file');
     $maxSize = ini_get('upload_max_filesize');
     if (strtolower(substr($maxSize, -1)) == 'k') {
         $maxSize = substr($maxSize, 0, -1) * 1024;
     } else {
         if (strtolower(substr($maxSize, -1)) == 'm') {
             $maxSize = substr($maxSize, 0, -1) * 1024 * 1024;
         } else {
             if (strtolower(substr($maxSize, -1)) == 'g') {
                 $maxSize = substr($maxSize, 0, -1) * 1024 * 1024 * 1024;
             }
         }
     }
     $this->setFileSizeLimit($maxSize);
     $this->setEmptyMessage(trlKwfStatic("Please choose a file"));
 }
Пример #2
0
 public function __construct($field_name = null, $field_label = null)
 {
     parent::__construct($field_name, $field_label);
     $this->setXtype('timefield');
     $this->setFormat('H:i');
     $this->setSaveSeconds(true);
 }
Пример #3
0
 public function __construct($field_name = null, $field_label = null)
 {
     parent::__construct($field_name, $field_label);
     $this->setXtype('colorpickerfield');
 }
Пример #4
0
 public function __construct($field_name = null, $field_label = null)
 {
     parent::__construct($field_name, $field_label);
     $this->setPlaceholderText(trlKwfStatic('yyyy-mm-dd'));
     $this->setXtype('datefield');
 }
Пример #5
0
 public function __construct($field_name = null, $field_label = null)
 {
     parent::__construct($field_name, $field_label);
     $this->setXtype('textfield');
     $this->setInputType('text');
 }
Пример #6
0
 public function __construct($field_name = null, $field_label = null)
 {
     parent::__construct($field_name, $field_label);
     $this->setXtype('pageselect');
 }
 public function __construct($field_name = null, $field_label = null)
 {
     parent::__construct($field_name, $field_label);
     $this->setXtype('googlemapsfield');
 }
Пример #8
0
 public function __construct($field_name = null, $field_label = null)
 {
     parent::__construct($field_name, $field_label);
     $this->setXtype('checkbox');
     $this->setBlankText(trlKwfStatic("Please mark the checkbox"));
 }
Пример #9
0
 public function __construct($field_name = null)
 {
     parent::__construct($field_name);
     $this->setXtype('hidden');
 }
 public function __construct($field_name = null, $field_label = null)
 {
     parent::__construct($field_name, $field_label);
     $this->setXtype('kwf.datetime');
 }
Пример #11
0
 public function __construct($field_name = null, $field_label = null)
 {
     parent::__construct($field_name, $field_label);
     $this->setLoadAfterSave(true);
     $this->setXtype('htmleditor');
 }
Пример #12
0
 public function __construct($field_name = null, $field_label = null)
 {
     parent::__construct($field_name, $field_label);
     $this->setXtype('combobox');
     $this->setEmptyText(trlKwfStatic('no selection'));
 }