You are here

function PARSEMONTH::parseDay in Bibliography Module 5

Same name and namespace in other branches
  1. 6.2 modules/bibtexParse/PARSEMONTH.php \PARSEMONTH::parseDay()
  2. 6 bibtexParse/PARSEMONTH.php \PARSEMONTH::parseDay()
  3. 7.3 plugins/biblio_style/bibtex/PARSEMONTH.php \PARSEMONTH::parseDay()
  4. 7 modules/bibtexParse/PARSEMONTH.php \PARSEMONTH::parseDay()
  5. 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

PARSEMONTH

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];
    }
  }
}