You are here

public function BiblioEntrezPubmedArticle::__construct in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 modules/pubmed/EntrezPubmedArticle.php \BiblioEntrezPubmedArticle::__construct()
  2. 7 modules/pubmed/EntrezPubmedArticle.php \BiblioEntrezPubmedArticle::__construct()
  3. 7.2 modules/pubmed/EntrezPubmedArticle.php \BiblioEntrezPubmedArticle::__construct()

Stores the given SimpleXMLElement the PubMed ID and the md5 hash of the serialized XML.

Parameters

$pubmedArticle: a PubmedArticle element

File

pubmed/EntrezPubmedArticle.php, line 25
EntrezPubmedArticle.php Provides a class for handling PubMed articles retrieved with EFetch. Orginally writen by Stefan Freudenberg

Class

BiblioEntrezPubmedArticle
@file EntrezPubmedArticle.php Provides a class for handling PubMed articles retrieved with EFetch. Orginally writen by Stefan Freudenberg

Code

public function __construct(SimpleXMLElement $pubmedArticle = NULL) {
  if ($pubmedArticle) {
    $this
      ->setArticle($pubmedArticle);
  }
}