function year($input) { $year = new VF_Year($input); $year->setY2KMode($this->Y2KMode); $year->setThreshold($this->threshold); return $year; }
function year($value) { $year = new VF_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; }
function testShouldDisableY2kMode() { $year = new VF_Year(24); $year->setY2KMode(false); $this->assertEquals( 24, $year->value(), 'should disable Y2k Mode' ); }