示例#1
0
文件: Field.php 项目: scriptotek/marc
 public static function makeFieldObjects(Record $record, $tag, $pcre = false)
 {
     return array_map(function ($field) {
         // Note: `new static()` is a way of creating a new instance of the
         // called class using late static binding.
         return new static($field);
     }, $record->getFields($tag, $pcre));
 }