Skip to content

Commit

Permalink
new field: showvalue_extended
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr-w committed Jan 5, 2025
1 parent 9cfe800 commit 640de41
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lib/yform/value/showvalue_extended.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

class rex_yform_value_showvalue_extended extends rex_yform_value_showvalue
{
public function getDescription(): string
{
return 'showvalue_extended|name|label|defaultwert|notice';
}

public function getDefinitions(): array
{
return [
'type' => 'value',
'name' => 'showvalue_extended',
'values' => [
'name' => ['type' => 'name', 'label' => rex_i18n::msg('yform_values_defaults_name')],
'label' => ['type' => 'text', 'label' => rex_i18n::msg('yform_values_defaults_label')],
'default' => ['type' => 'text', 'label' => rex_i18n::msg('yform_values_text_default')],
'notice' => ['type' => 'text', 'label' => rex_i18n::msg('yform_values_defaults_notice')],
],
'description' => rex_i18n::msg('yform_values_showvalue_extended_description'),
'db_type' => ['text', 'varchar(191)', 'mediumtext', 'longtext'],
];
}

}

0 comments on commit 640de41

Please sign in to comment.