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 +--------------------------------------------------------------------+
16 * @see https://docs.civicrm.org/user/en/latest/organising-your-data/creating-custom-fields/
17 * @searchable secondary
19 * @groupWeightsBy custom_group_id
23 class CustomField
extends Generic\DAOEntity
{
24 use Generic\Traits\ManagedEntity
;
25 use Generic\Traits\SortableEntity
;
28 * @param bool $checkPermissions
29 * @return Action\CustomField\Create
31 public static function create($checkPermissions = TRUE) {
32 return (new Action\CustomField\
Create(__CLASS__
, __FUNCTION__
))
33 ->setCheckPermissions($checkPermissions);
37 * @param bool $checkPermissions
38 * @return Action\CustomField\Save
40 public static function save($checkPermissions = TRUE) {
41 return (new Action\CustomField\
Save(__CLASS__
, __FUNCTION__
))
42 ->setCheckPermissions($checkPermissions);
46 * @param bool $checkPermissions
47 * @return Action\CustomField\Update
49 public static function update($checkPermissions = TRUE) {
50 return (new Action\CustomField\
Update(__CLASS__
, __FUNCTION__
))
51 ->setCheckPermissions($checkPermissions);