You are here

public function BiblioEntrezPubmedArticle::__construct in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/pubmed/EntrezPubmedArticle.php \BiblioEntrezPubmedArticle::__construct()
  2. 6 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

modules/pubmed/EntrezPubmedArticle.php, line 29
Provides a class for handling PubMed articles retrieved with EFetch.

Class

BiblioEntrezPubmedArticle

Code

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