get('userID')) { $contactID = $session->get('userID'); } } $key = "{$tableName}_{$type}_{$contactID}"; if (array_key_exists($key, $cache)) { $groups = &$cache[$key]; } else { $groups = self::group($type, $contactID, $tableName, $allGroups, $includedGroups); $cache[$key] = $groups; } if (empty($groups)) { return FALSE; } return in_array($groupID, $groups) ? TRUE : FALSE; } }