コード例 #1
0
 /**
  * Get the licensing info from the XML and add it to the deposit object.
  *
  * @todo getLicensingInfo() is a terrible name
  *
  * @param Deposit          $deposit
  * @param SimpleXMLElement $xml
  */
 public function getLicensingInfo(Deposit $deposit, SimpleXMLElement $xml)
 {
     $item = $xml->xpath('//pkp:license/node()');
     foreach ($item as $child) {
         $deposit->addLicense($child->getName(), (string) $child);
     }
 }