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")); }
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); }
public function __construct($field_name = null, $field_label = null) { parent::__construct($field_name, $field_label); $this->setXtype('colorpickerfield'); }
public function __construct($field_name = null, $field_label = null) { parent::__construct($field_name, $field_label); $this->setPlaceholderText(trlKwfStatic('yyyy-mm-dd')); $this->setXtype('datefield'); }
public function __construct($field_name = null, $field_label = null) { parent::__construct($field_name, $field_label); $this->setXtype('textfield'); $this->setInputType('text'); }
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'); }
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")); }
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'); }
public function __construct($field_name = null, $field_label = null) { parent::__construct($field_name, $field_label); $this->setLoadAfterSave(true); $this->setXtype('htmleditor'); }
public function __construct($field_name = null, $field_label = null) { parent::__construct($field_name, $field_label); $this->setXtype('combobox'); $this->setEmptyText(trlKwfStatic('no selection')); }