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 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
17 class CRM_Member_BAO_MembershipBlock
extends CRM_Member_DAO_MembershipBlock
{
22 public function __construct() {
23 parent
::__construct();
27 * Create or update a MembershipBlock.
29 * @param array $params
30 * @return CRM_Member_DAO_MembershipBlock
32 public static function create($params) {
33 return self
::writeRecord($params);
37 * Delete membership Blocks.
43 public static function del($id) {
44 $dao = new CRM_Member_DAO_MembershipBlock();
47 if ($dao->find(TRUE)) {