/** * Create an array containing only the available urlqueue property values. * * @param \Searchperience\Api\Client\Domain\UrlQueueItem\UrlQueueItem $urlQueue * @return array */ protected function buildRequestArray(\Searchperience\Api\Client\Domain\AbstractEntity $urlQueue) { $valueArray = array(); if (!is_null($urlQueue->getDeleted()) && !$urlQueue->getDeleted()) { $valueArray['deleted'] = 0; } if (!is_null($urlQueue->getDocumentId())) { $valueArray['documentId'] = $urlQueue->getDocumentId(); } //only reset allowed if (!is_null($urlQueue->getFailCount()) && $urlQueue->getFailCount() == 0) { $valueArray['failCount'] = $urlQueue->getFailCount(); } if (!is_null($urlQueue->getPriority())) { $valueArray['priority'] = $urlQueue->getPriority(); } if (!is_null($urlQueue->getUrl())) { $valueArray['url'] = $urlQueue->getUrl(); } // documentId is readonly and will not be persistet // lastError is readonly and will not be persistet // processingStartTime is readonly and will not be persistet // processingThreadId is readonly and will not be persistet return $valueArray; }