Open Journal Systems  3.3.0
Seboettg\CiteProc\Style\Options\PageRangeFormats Class Reference
Inheritance diagram for Seboettg\CiteProc\Style\Options\PageRangeFormats:
MyCLabs\Enum\Enum

Data Fields

const CHICAGO = "chicago"
 
const EXPANDED = "expanded"
 
const MINIMAL = "minimal"
 
const MINIMAL_TWO = "minimal-two"
 

Additional Inherited Members

- Public Member Functions inherited from MyCLabs\Enum\Enum
 __construct ($value)
 
 __toString ()
 
 equals ($variable=null)
 
 getKey ()
 
 getValue ()
 
 jsonSerialize ()
 
- Static Public Member Functions inherited from MyCLabs\Enum\Enum
static __callStatic ($name, $arguments)
 
static isValid ($value)
 
static isValidKey ($key)
 
static keys ()
 
static search ($value)
 
static toArray ()
 
static values ()
 
- Protected Attributes inherited from MyCLabs\Enum\Enum
 $value
 
- Static Protected Attributes inherited from MyCLabs\Enum\Enum
static $cache = []
 

Detailed Description

Definition at line 25 of file PageRangeFormats.php.

Field Documentation

◆ CHICAGO

const Seboettg\CiteProc\Style\Options\PageRangeFormats::CHICAGO = "chicago"

Page ranges are abbreviated according to the Chicago Manual of Style-rules:

First number Second number Examples

Less than 100 Use all digits 3–10; 71–72

100 or multiple of 100 Use all digits 100–104; 600–613;

1100–1123

101 through 109 (in multiples of 100) Use changed part only, omitting unneeded zeros 107–8; 505–17; 1002–6

110 through 199 (in multiples of 100) Use two digits, or more as needed 321–25; 415–532;

11564–68; 13792–803

4 digits If numbers are four digits long and three digits change, use all digits

Definition at line 45 of file PageRangeFormats.php.

Referenced by Seboettg\CiteProc\Util\PageHelper\processPageRangeFormats(), and Seboettg\CiteProc\Util\PageHelperTest\setUp().

◆ EXPANDED

const Seboettg\CiteProc\Style\Options\PageRangeFormats::EXPANDED = "expanded"

Abbreviated page ranges are expanded to their non-abbreviated form: 42–45, 321–328, 2787–2816

Definition at line 50 of file PageRangeFormats.php.

Referenced by Seboettg\CiteProc\Util\PageHelper\processPageRangeFormats(), and Seboettg\CiteProc\Util\PageHelperTest\setUp().

◆ MINIMAL

const Seboettg\CiteProc\Style\Options\PageRangeFormats::MINIMAL = "minimal"

All digits repeated in the second number are left out: 42–5, 321–8, 2787–816

Definition at line 55 of file PageRangeFormats.php.

Referenced by Seboettg\CiteProc\Util\PageHelper\processPageRangeFormats(), and Seboettg\CiteProc\Util\PageHelperTest\setUp().

◆ MINIMAL_TWO

const Seboettg\CiteProc\Style\Options\PageRangeFormats::MINIMAL_TWO = "minimal-two"

As “minimal”, but at least two digits are kept in the second number when it has two or more digits long.

Definition at line 60 of file PageRangeFormats.php.

Referenced by Seboettg\CiteProc\Util\PageHelper\processPageRangeFormats(), and Seboettg\CiteProc\Util\PageHelperTest\setUp().


The documentation for this class was generated from the following file: