function PARSEMONTH::parseDay in Bibliography Module 5
Same name and namespace in other branches
- 6.2 modules/bibtexParse/PARSEMONTH.php \PARSEMONTH::parseDay()
- 6 bibtexParse/PARSEMONTH.php \PARSEMONTH::parseDay()
- 7.3 plugins/biblio_style/bibtex/PARSEMONTH.php \PARSEMONTH::parseDay()
- 7 modules/bibtexParse/PARSEMONTH.php \PARSEMONTH::parseDay()
- 7.2 modules/bibtexParse/PARSEMONTH.php \PARSEMONTH::parseDay()
1 call to PARSEMONTH::parseDay()
- PARSEMONTH::init in bibtexParse/
PARSEMONTH.php
File
- bibtexParse/
PARSEMONTH.php, line 62
Class
Code
function parseDay($dayField) {
preg_match("/([0-9]+).*([0-9]+)|([0-9]+)/", $dayField, $array);
if (array_key_exists(3, $array)) {
if (!$this->startDay) {
$this->startDay = $array[3];
}
else {
if (!$this->endDay) {
$this->endDay = $array[3];
}
}
}
else {
if (array_key_exists(1, $array)) {
$this->startDay = $array[1];
}
if (array_key_exists(2, $array)) {
$this->endDay = $array[2];
}
}
}