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
22 class CustomField
extends Generic\DAOEntity
{
23 use Generic\Traits\ManagedEntity
;
24 use Generic\Traits\SortableEntity
;
27 * @param bool $checkPermissions
28 * @return Action\CustomField\Create
30 public static function create($checkPermissions = TRUE) {
31 return (new Action\CustomField\
Create(__CLASS__
, __FUNCTION__
))
32 ->setCheckPermissions($checkPermissions);
36 * @param bool $checkPermissions
37 * @return Action\CustomField\Save
39 public static function save($checkPermissions = TRUE) {
40 return (new Action\CustomField\
Save(__CLASS__
, __FUNCTION__
))
41 ->setCheckPermissions($checkPermissions);
45 * @param bool $checkPermissions
46 * @return Action\CustomField\Update
48 public static function update($checkPermissions = TRUE) {
49 return (new Action\CustomField\
Update(__CLASS__
, __FUNCTION__
))
50 ->setCheckPermissions($checkPermissions);