We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c90cc80 commit 7a1b9eaCopy full SHA for 7a1b9ea
src/Record.php
@@ -70,12 +70,24 @@ public function getRecord()
70
return $this->record;
71
}
72
73
+ /**
74
+ * Find and wrap the specified MARC field.
75
+ *
76
+ * @param string $spec
77
+ * The tag name.
78
+ * @param bool $pcre
79
+ * If true, match as a regular expression.
80
81
+ * @return \Scriptotek\Marc\Fields\Field|null
82
+ * A wrapped field, or NULL if not found.
83
+ */
84
public function getField($spec = null, $pcre = null)
85
{
86
$q = $this->record->getField($spec, $pcre);
87
if ($q) {
88
return new Field($q);
89
90
+ return null;
91
92
93
public function getFields($spec = null, $pcre = null)
0 commit comments