示例#1
0
 function year($input)
 {
     $year = new Ne8Vehicle_Year($input);
     $year->setY2KMode($this->Y2KMode);
     $year->setThreshold($this->threshold);
     return $year;
 }
 function year($value)
 {
     $year = new Ne8Vehicle_Year($value);
     if (isset($this->getConfig()->importer->Y2KMode) && false === $this->getConfig()->importer->Y2KMode) {
         $year->setY2KMode(false);
     }
     if ($this->getConfig()->importer->Y2KThreshold) {
         $year->setThreshold($this->getConfig()->importer->Y2KThreshold);
     }
     return $year;
 }