Skip to content

Commit

Permalink
Create be_hidden.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w committed Nov 10, 2023
1 parent 1ac64e5 commit 4254f60
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lib/yform/value/be_hidden.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
class rex_yform_value_be_hidden extends rex_yform_value_hidden
{
public function getDescription(): string
{
return 'be_hidden|fieldname|value||[no_db]' . "\n" . 'hidden|fieldname|key|REQUEST/GET/POST/SESSION|[no_db]';
}

public function getDefinitions(): array
{
return [
'type' => 'value',
'name' => 'be_hidden',
'values' => [
'name' => ['type' => 'name', 'label' => rex_i18n::msg('yform_values_defaults_name')],
'key' => ['type' => 'text', 'label' => rex_i18n::msg('yform_values_be_hidden_key')],
'type' => ['type' => 'choice', 'label' => rex_i18n::msg('yform_values_be_hidden_type'), 'choices' => ["" => "", "REQUEST", "GET", "POST", "SESSION"], 'default' => ""],
'no_db' => ['type' => 'no_db', 'label' => rex_i18n::msg('yform_values_defaults_table'), 'default' => 0],
],
'description' => 'Versteckte Eingabe',
'db_type' => ['varchar(191)', 'text']
];
}
}

?>

0 comments on commit 4254f60

Please sign in to comment.