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
25 * Note that the class for this entity is named "CiviCase" because "Case" is a keyword reserved by php.
27 * @see https://docs.civicrm.org/user/en/latest/case-management/what-is-civicase/
31 class CiviCase
extends Generic\DAOEntity
{
34 * Explicitly declare entity name because it doesn't match the name of this class
35 * (due to the php reserved keyword issue)
39 protected static function getEntityName() {
44 * @param bool $checkPermissions
45 * @return Action\CiviCase\Create
47 public static function create($checkPermissions = TRUE) {
48 return (new Action\CiviCase\
Create('Case', __FUNCTION__
))
49 ->setCheckPermissions($checkPermissions);
53 * @param bool $checkPermissions
54 * @return Action\CiviCase\Save
56 public static function save($checkPermissions = TRUE) {
57 return (new Action\CiviCase\
Save('Case', __FUNCTION__
))
58 ->setCheckPermissions($checkPermissions);
62 * @param bool $checkPermissions
63 * @return Action\CiviCase\Update
65 public static function update($checkPermissions = TRUE) {
66 return (new Action\CiviCase\
Update('Case', __FUNCTION__
))
67 ->setCheckPermissions($checkPermissions);