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