/** * Adds the encrypted Solr core name to the search form * * @access protected * * @return string HTML input fields with encrypted core name and hash */ protected function addEncryptedCoreName() { // Get core name. $name = tx_dlf_helper::getIndexName($this->conf['solrcore'], 'tx_dlf_solrcores'); // Encrypt core name. if (!empty($name)) { $name = tx_dlf_helper::encrypt($name); } // Add encrypted fields to search form. if (is_array($name)) { return '<input type="hidden" name="' . $this->prefixId . '[encrypted]" value="' . $name['encrypted'] . '" /><input type="hidden" name="' . $this->prefixId . '[hashed]" value="' . $name['hash'] . '" />'; } else { return ''; } }