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 +--------------------------------------------------------------------+
14 * Contribution entity.
20 class Contribution
extends Generic\DAOEntity
{
23 * @param bool $checkPermissions
24 * @return Action\Contribution\Create
26 public static function create($checkPermissions = TRUE) {
27 return (new Action\Contribution\
Create(__CLASS__
, __FUNCTION__
))
28 ->setCheckPermissions($checkPermissions);
32 * @param bool $checkPermissions
33 * @return Action\Contribution\Save
35 public static function save($checkPermissions = TRUE) {
36 return (new Action\Contribution\
Save(__CLASS__
, __FUNCTION__
))
37 ->setCheckPermissions($checkPermissions);
41 * @param bool $checkPermissions
42 * @return Action\Contribution\Update
44 public static function update($checkPermissions = TRUE) {
45 return (new Action\Contribution\
Update(__CLASS__
, __FUNCTION__
))
46 ->setCheckPermissions($checkPermissions);