RenanBr.BibTexParser.Processor.NamesProcessor - JoomlaPubDB/PubDB GitHub Wiki
Namespace: \RenanBr\BibTexParser\Processor
Summary:
Splits names in four parts: First Von Last Jr.
Description:
This class includes source code adapted from the Structures_BibTex package, (c) Elmar Pitschke [email protected], included here under PHP license: http://www.php.net/license/3_0.txt
- No constants found
- public setTagCoverage()
- public __construct()
- public __invoke()
- protected getCoveredTags()
- private extractAuthors()
- private determineCase()
- File: administrator/helpers/vendor/renanbr/bibtex-parser/src/Processor/NamesProcessor.php
- Package: Default
- Class Hierarchy:
- \RenanBr\BibTexParser\Processor\NamesProcessor
- Uses Traits:
- See Also:
Tag | Version | Description |
---|---|---|
author | Andre Chalom [email protected] |
Type: array
Details:
- Inherited From: \RenanBr\BibTexParser\Processor\TagCoverageTrait
Type: string
Details:
- Inherited From: \RenanBr\BibTexParser\Processor\TagCoverageTrait
public setTagCoverage(array $tags, string $strategy = null)
Details:
- Inherited From: \RenanBr\BibTexParser\Processor\TagCoverageTrait
Type | Name | Description |
---|---|---|
array |
$tags | List of tags to be covered |
string |
$strategy | Can assume "whitelist" (default) or "blacklist" |
public __construct()
Details:
- Inherited From: \RenanBr\BibTexParser\Processor\NamesProcessor
public __invoke(array $entry) : array
Details:
- Inherited From: \RenanBr\BibTexParser\Processor\NamesProcessor
Type | Name | Description |
---|---|---|
array |
$entry |
Returns: array
protected getCoveredTags(array $tags) : array
Summary
Calculates which tags are covered.
Description
The search performed internally is case-insensitive.
Details:
- Inherited From: \RenanBr\BibTexParser\Processor\TagCoverageTrait
Type | Name | Description |
---|---|---|
array |
$tags |
Returns: array
private extractAuthors(string $entry) : array
Summary
Extracting the authors.
Details:
- Inherited From: \RenanBr\BibTexParser\Processor\NamesProcessor
Type | Name | Description |
---|---|---|
string |
$entry | The entry with the authors |
Returns: array - the extracted authors
Tag | Version | Description |
---|---|---|
author | Elmar Pitschke [email protected] |
private determineCase(string $word) : integer
Summary
Case Determination according to the needs of BibTex.
Description
To parse the Author(s) correctly a determination is needed to get the Case of a word. There are three possible values:
- Upper Case (return value 1)
- Lower Case (return value 0)
- Caseless (return value -1)
Details:
- Inherited From: \RenanBr\BibTexParser\Processor\NamesProcessor
Type | Name | Description |
---|---|---|
string |
$word |
Type | Description |
---|---|
\RenanBr\BibTexParser\Exception\ProcessorException |
Returns: integer - The Case
Tag | Version | Description |
---|---|---|
author | Elmar Pitschke [email protected] |
This document was automatically generated from source code comments on 2020-07-13 using phpDocumentor and fr3nch13/phpdoc-markdown