4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
22 namespace Civi\Api4\Service\Spec
;
24 class CustomFieldSpec
extends FieldSpec
{
28 protected $customFieldId;
33 protected $customGroup;
43 protected $columnName;
48 public function setDataType($dataType) {
50 case 'ContactReference':
51 $this->setFkEntity('Contact');
52 $dataType = 'Integer';
58 $this->setFkEntity($dataType);
59 $dataType = 'Integer';
62 return parent
::setDataType($dataType);
68 public function getCustomFieldId() {
69 return $this->customFieldId
;
73 * @param int $customFieldId
77 public function setCustomFieldId($customFieldId) {
78 $this->customFieldId
= $customFieldId;
86 public function getCustomGroupName() {
87 return $this->customGroup
;
91 * @param string $customGroupName
95 public function setCustomGroupName($customGroupName) {
96 $this->customGroup
= $customGroupName;
104 public function getCustomTableName() {
105 return $this->tableName
;
109 * @param string $customFieldColumnName
113 public function setCustomTableName($customFieldColumnName) {
114 $this->tableName
= $customFieldColumnName;
122 public function getCustomFieldColumnName() {
123 return $this->columnName
;
127 * @param string $customFieldColumnName
131 public function setCustomFieldColumnName($customFieldColumnName) {
132 $this->columnName
= $customFieldColumnName;