Merge pull request #22822 from civicrm/5.47
[civicrm-core.git] / CRM / Member / BAO / MembershipBlock.php
CommitLineData
b488bd43
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
bc77d7c0 4 | Copyright CiviCRM LLC. All rights reserved. |
b488bd43 5 | |
bc77d7c0
TO
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 |
b488bd43 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
b488bd43
TO
11
12/**
13 *
14 * @package CRM
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
b488bd43
TO
16 */
17class CRM_Member_BAO_MembershipBlock extends CRM_Member_DAO_MembershipBlock {
971e129b 18
28abbcb0 19 /**
6a5fec96 20 * Create or update a MembershipBlock.
28abbcb0 21 *
b2363ea8 22 * @param array $params
6a5fec96 23 * @return CRM_Member_DAO_MembershipBlock
28abbcb0 24 */
6a5fec96
CW
25 public static function create($params) {
26 return self::writeRecord($params);
28abbcb0 27 }
28
29 /**
fe482240 30 * Delete membership Blocks.
28abbcb0 31 *
32 * @param int $id
67d870c5 33 * @deprecated
77b97be7 34 * @return bool
28abbcb0 35 */
00be9182 36 public static function del($id) {
67d870c5 37 return (bool) self::deleteRecord(['id' => $id]);
28abbcb0 38 }
39
40}