src/File_MARC_Reference.php
private function referenceFieldsByTag()
    {
        $tag = $this->spec['field']['tag'];

        if ($this->cache->offsetExists($tag)) {
            return $this->cache[$tag];
        }

        if ('LDR' !== $tag) {
            $_fieldRef = $this->record->getFields($tag, true);
        } else {
            // tag = LDR
            $_fieldRef[] = $this->record->getLeader();
        }

        $this->cache[$tag] = $_fieldRef;

        return $_fieldRef;
    }
private function referenceFieldsByTag()
    {
        $tag = $this->spec['field']['tag'];

        if ($this->cache->offsetExists($tag)) {
            return $this->cache[$tag];
        }

        if ('LDR' !== $tag) {
            $_fieldRef = $this->record->getFields($tag, true);
        } else {
            // tag = LDR
            $_fieldRef[] = $this->record->getLeader();
        }

        $this->cache[$tag] = $_fieldRef;

        return $_fieldRef;
    }
private function referenceFieldsByTag ( ) { $ tag = $ this -> spec [ 'field' ] [ 'tag' ] ; if ( $ this -> cache -> offsetExists ( $ tag ) ) { return $ this -> cache [ $ tag ] ; } if ( 'LDR' !== $ tag ) { $ _fieldRef = $ this -> record -> getFields ( $ tag , true ) ; } else { // tag = LDR $ _fieldRef [ ] = $ this -> record -> getLeader ( ) ; } $ this -> cache [ $ tag ] = $ _fieldRef ; return $ _fieldRef ; }
Reference fields by field tag.

@return array Array of referred fields
Reference fields by field tag .