From d7e7d248cbe41cd7a9ef9c2fb022b6c4831f99a3 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 31 May 2026 15:22:56 +0000
Subject: [PATCH] =jakevan complete
---
inc/registrar/fields/Field.php | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/inc/registrar/fields/Field.php b/inc/registrar/fields/Field.php
index 6367202..c1d5e33 100644
--- a/inc/registrar/fields/Field.php
+++ b/inc/registrar/fields/Field.php
@@ -19,6 +19,8 @@
protected bool $quickEdit = true; // whether to show in quick edit table
protected bool $quill; // whether to use quill
protected int $maxLength; // of characters
+ protected int $min;
+ protected int $max;
protected string $subtype;
protected array $condition;
protected array $allowedSubtype = ['text', 'url','number','tel','email','number'];
@@ -126,7 +128,22 @@
{
return $this->section??null;
}
-
+ public function setMin(int $min):void
+ {
+ $this->min = $min;
+ }
+ public function getMin():?int
+ {
+ return $this->min??null;
+ }
+ public function setMax(int $max):void
+ {
+ $this->max = $max;
+ }
+ public function getMax():?int
+ {
+ return $this->max??null;
+ }
public function setMaxLength(int $maxLength):void
{
$this->maxLength = $maxLength;
--
Gitblit v1.10.0