Esempio n. 1
0
 /**
  * @param Core $core
  * @return bool
  */
 public function has(Core $core)
 {
     $allApiCores = $this->storageBackend->findAll();
     foreach ($allApiCores as $apiCore) {
         if ($core->getName() == $apiCore->getName()) {
             return true;
         }
     }
     return false;
 }
 /**
  * Performs a delete Request.
  *
  * @param Core $solrCore
  * @throws \HostedSolr\ApiClient\Exception\HostedSolrApiException
  * @return boolean
  */
 public function remove(Core $solrCore)
 {
     return $this->removeById($solrCore->getId());
 }