3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
12 namespace Civi\Schema\Traits
;
15 * If a field will be presented in GUIs (e.g. data-entry fields or
16 * data-columns), then use GuiSpecTrait to describe its typical/default appearance..
18 * @package Civi\Schema\Traits
23 * User-facing label, shown on most forms and displays
25 * Default label to use when presenting this field to an end-user (e.g.
26 * on a data-entry form or a data-column view).
33 * Default widget to use when presenting this field.
36 * Ex: 'RichTextEditor'
43 public $inputAttrs = [];
58 public function getLabel() {
65 public function getInputType() {
66 return $this->inputType
;
70 * @param string $inputType
74 public function setInputType($inputType) {
75 $this->inputType
= $inputType;
82 public function getInputAttrs() {
83 return $this->inputAttrs
;
87 * @param array $inputAttrs
91 public function setInputAttrs($inputAttrs) {
92 $this->inputAttrs
= $inputAttrs;
97 * @param string $label
101 public function setLabel($label) {
102 $this->label
= $label;
107 * @param string|null $helpPre
109 public function setHelpPre($helpPre) {
110 $this->helpPre
= is_string($helpPre) && strlen($helpPre) ?
$helpPre : NULL;
114 * @param string|null $helpPost
116 public function setHelpPost($helpPost) {
117 $this->helpPost
= is_string($helpPost) && strlen($helpPost) ?
$helpPost : NULL;