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/
30 class CiviCase
extends Generic\DAOEntity
{
33 * Explicitly declare entity name because it doesn't match the name of this class
34 * (due to the php reserved keyword issue)
38 protected static function getEntityName() {
43 * @param bool $checkPermissions
44 * @return Action\CiviCase\Create
46 public static function create($checkPermissions = TRUE) {
47 return (new Action\CiviCase\
Create('Case', __FUNCTION__
))
48 ->setCheckPermissions($checkPermissions);
52 * @param bool $checkPermissions
53 * @return Action\CiviCase\Save
55 public static function save($checkPermissions = TRUE) {
56 return (new Action\CiviCase\
Save('Case', __FUNCTION__
))
57 ->setCheckPermissions($checkPermissions);
61 * @param bool $checkPermissions
62 * @return Action\CiviCase\Update
64 public static function update($checkPermissions = TRUE) {
65 return (new Action\CiviCase\
Update('Case', __FUNCTION__
))
66 ->setCheckPermissions($checkPermissions);