Exemplo n.º 1
0
 /**
  * Index supp file metadata.
  * @param $suppFile object
  */
 function indexSuppFileMetadata(&$suppFile)
 {
     // Update search index
     $articleId = $suppFile->getArticleId();
     ArticleSearchIndex::updateTextIndex($articleId, ARTICLE_SEARCH_SUPPLEMENTARY_FILE, array_merge(array_values((array) $suppFile->getTitle(null)), array_values((array) $suppFile->getCreator(null)), array_values((array) $suppFile->getSubject(null)), array_values((array) $suppFile->getTypeOther(null)), array_values((array) $suppFile->getDescription(null)), array_values((array) $suppFile->getSource(null))), $suppFile->getFileId());
 }