<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
class CRM_ACL_BAO_EntityRole extends CRM_ACL_DAO_EntityRole {
static $_entityTable = NULL;
+ /**
+ * @return array|null
+ */
static function entityTable() {
if (!self::$_entityTable) {
self::$_entityTable = array(
return self::$_entityTable;
}
+ /**
+ * @param array $params
+ *
+ * @return CRM_ACL_DAO_EntityRole
+ */
static function create(&$params) {
$dao = new CRM_ACL_DAO_EntityRole();
$dao->copyValues($params);
return $dao;
}
+ /**
+ * @param array $params
+ * @param $defaults
+ */
static function retrieve(&$params, &$defaults) {
CRM_Core_DAO::commonRetrieve('CRM_ACL_DAO_EntityRole', $params, $defaults);
}
/**
- * update the is_active flag in the db
+ * Update the is_active flag in the db
*
* @param int $id id of the database record
* @param boolean $is_active value we want to set the is_active field
}
/**
- * Function to delete Entity Role records
+ * Delete Entity Role records
*
* @param int $entityRoleId ID of the EntityRole record to be deleted.
*