コード例 #1
0
ファイル: Collection.php プロジェクト: cKlee/php-marc
 public static function fromString($data)
 {
     $importer = new Importer($data, false);
     return $importer->getCollection();
 }
コード例 #2
0
ファイル: Collection.php プロジェクト: scriptotek/marc
 /**
  * Load records from a string (Binary MARC or XML).
  *
  * @param string $data
  * @return Collection
  */
 public static function fromString($data)
 {
     $importer = new Importer();
     return $importer->fromString($data);
 }