Beispiel #1
0
 protected function parse()
 {
     $matches = parent::parse();
     $this->properties['gender'] = $this->properties['sequence'] % 2 ? 'male' : 'female';
     $this->properties['century'] = $this->calculateCentury($matches['centuryHint']);
     $this->properties['birthday'] = $this->composeBirthday();
 }
 protected function parse()
 {
     $matches = parent::parse();
     $this->properties['century'] = $this->calculateCentury();
     $this->properties['gender'] = $matches['number'] % 2 ? 'male' : 'female';
     $this->properties['d-number'] = $matches['day'] > 40;
     $this->properties['h-number'] = $matches['month'] > 40;
     $this->properties['birthday'] = $this->composeBirthday();
 }
Beispiel #3
0
 protected function parse()
 {
     $matches = parent::parse();
     if (!$matches['centuryHint']) {
         $this->properties['centuryHint'] = '-';
     }
     if ($this->properties['month'] >= 20) {
         $this->properties['type'] = 'organization';
         $this->properties['century'] = '16';
         $this->properties['form'] = $this->parseForm($matches['form']);
     } else {
         if ($this->properties['day'] >= 60) {
             $this->properties['temporary'] = true;
         }
         $this->properties['type'] = 'person';
         $this->properties['century'] = $matches['century'] ?: $this->calculateCentury($matches['centuryHint']);
         $this->properties['gender'] = $this->properties['number'] % 2 ? 'male' : 'female';
         $this->properties['birthday'] = $this->composeBirthday();
         $this->properties['county'] = $this->parseCounty();
     }
 }
Beispiel #4
0
 protected function parse()
 {
     $matches = parent::parse();
     $this->properties['gender'] = $matches['number'] % 2 ? 'male' : 'female';
     $this->properties['century'] = $this->calculateCentury($matches['centuryHint']);
 }