You are here

private function DrupalApacheSolrService::drupal_apachesolr_hash_base64 in Apache Solr Search 6.3

3 calls to DrupalApacheSolrService::drupal_apachesolr_hash_base64()
DrupalApacheSolrService::setLuke in ./Drupal_Apache_Solr_Service.php
Sets $this->luke with the meta-data about the index from admin/luke.
DrupalApacheSolrService::setStats in ./Drupal_Apache_Solr_Service.php
Sets $this->stats with the information about the Solr Core form
DrupalApacheSolrService::setSystemInfo in ./Drupal_Apache_Solr_Service.php
Call the /admin/system servlet

File

./Drupal_Apache_Solr_Service.php, line 902

Class

DrupalApacheSolrService
Starting point for the Solr API. Represents a Solr server resource and has methods for pinging, adding, deleting, committing, optimizing and searching.

Code

private function drupal_apachesolr_hash_base64($data) {
  $hash = base64_encode(hash('sha256', $data, TRUE));

  // Modify the hash so it's safe to use in URLs.
  return strtr($hash, array(
    '+' => '-',
    '/' => '_',
    '=' => '',
  ));
}