more missing code comment blocks
[civicrm-core.git] / CRM / ACL / BAO / Cache.php
index 9feb99907ca14052acc6868a9e9391363160b8c2..e34265969bb48b3c4f13472fa544567217e1ceab 100644 (file)
@@ -40,6 +40,11 @@ class CRM_ACL_BAO_Cache extends CRM_ACL_DAO_Cache {
 
   static $_cache = NULL;
 
+  /**
+   * @param $id
+   *
+   * @return mixed
+   */
   static function &build($id) {
     if (!self::$_cache) {
       self::$_cache = array();
@@ -61,6 +66,11 @@ class CRM_ACL_BAO_Cache extends CRM_ACL_DAO_Cache {
     return self::$_cache[$id];
   }
 
+  /**
+   * @param $id
+   *
+   * @return array
+   */
   static function retrieve($id) {
     $query = "
 SELECT acl_id
@@ -82,6 +92,10 @@ SELECT acl_id
     return $cache;
   }
 
+  /**
+   * @param $id
+   * @param $cache
+   */
   static function store($id, &$cache) {
     foreach ($cache as $aclID => $data) {
       $dao = new CRM_ACL_DAO_Cache();
@@ -96,6 +110,9 @@ SELECT acl_id
     }
   }
 
+  /**
+   * @param $id
+   */
   static function deleteEntry($id) {
     if (self::$_cache &&
       array_key_exists($id, self::$_cache)
@@ -111,6 +128,9 @@ WHERE contact_id = %1
     CRM_Core_DAO::executeQuery($query, $params);
   }
 
+  /**
+   * @param $id
+   */
   static function updateEntry($id) {
     // rebuilds civicrm_acl_cache
     self::deleteEntry($id);