BIBFORMAT
    
            
            in package
            
        
    
    
    
        
            Format a bibliographic resource for output.
Table of Contents
- $bibtex : mixed
 - Bibtex
 - $bibtexParsePath : mixed
 - Path
 - $countRecords : mixed
 - int
 - $customFields : mixed
 - array
 - $dateMonthNoDay : mixed
 - Boolean
 - $dir : mixed
 - Path
 - $editorSwitch : mixed
 - Switch editor and author positions in the style definition for a book in which there are only editors
 - $footnoteType : mixed
 - boolean
 - $partialDone : mixed
 - boolean
 - $previousCreator : mixed
 - Previous creator
 - cardinalToOrdinal() : string
 - Create ordinal number from cardinal
 - checkPartial() : mixed
 - Check that the first field of $this->$type exists in $this->item and has a value.
 - findAlternates() : mixed
 - Find alternate fields dependent on previous or following fields and deal with accordingly.
 - loadInitial() : mixed
 - Load initial directory and style
 - preProcessBibtex() : array<string|int, mixed>|string
 - Preprocess BibTeX-type entries
 - restoreTypes() : mixed
 - Restore each $this->type array from $this->backup
 
Properties
$bibtex
Bibtex
    private
        mixed
    $bibtex
     = FALSE
    
        
    
$bibtexParsePath
Path
    private
        mixed
    $bibtexParsePath
    
    
        
    
$countRecords
int
    private
        mixed
    $countRecords
     = 0
    
        
    
$customFields
array
    private
        mixed
    $customFields
     = []
    
        
    
$dateMonthNoDay
Boolean
    private
        mixed
    $dateMonthNoDay
     = FALSE
    
        
    
$dir
Path
    private
        mixed
    $dir
     = ''
    
        
    
$editorSwitch
Switch editor and author positions in the style definition for a book in which there are only editors
    private
        mixed
    $editorSwitch
     = FALSE
    
        
    
$footnoteType
boolean
    private
        mixed
    $footnoteType
     = FALSE
    
        
    
$partialDone
boolean
    private
        mixed
    $partialDone
     = FALSE
    
        
    
$previousCreator
Previous creator
    private
        mixed
    $previousCreator
     = ''
    
        
    
Methods
cardinalToOrdinal()
Create ordinal number from cardinal
    private
                cardinalToOrdinal(string $cardinal[, string $field = FALSE ]) : string
    
        Parameters
- $cardinal : string
 - 
                    
Input number.
 - $field : string = FALSE
 - 
                    
Default is FALSE.
 
Return values
string —checkPartial()
Check that the first field of $this->$type exists in $this->item and has a value.
    private
                checkPartial(string $type) : mixed
        If it does not and $this->$type has a partial template array, rearrange $this->$type
Parameters
- $type : string
 - 
                    
Resource type
 
Return values
mixed —findAlternates()
Find alternate fields dependent on previous or following fields and deal with accordingly.
    private
                findAlternates(array<string|int, mixed> $typeArray) : mixed
    
        Parameters
- $typeArray : array<string|int, mixed>
 
Return values
mixed —loadInitial()
Load initial directory and style
    private
                loadInitial() : mixed
    
    
    
        Return values
mixed —preProcessBibtex()
Preprocess BibTeX-type entries
    private
                preProcessBibtex(array<string|int, mixed> &$row, string $type) : array<string|int, mixed>|string
    
        Parameters
- $row : array<string|int, mixed>
 - 
                    
assoc. array of elements for one bibtex entry
 - $type : string
 - 
                    
resource type
 
Return values
array<string|int, mixed>|string —resource type|resource assoc. array of elements for one bibtex entry
restoreTypes()
Restore each $this->type array from $this->backup
    private
                restoreTypes() : mixed