/** * Map the event status to a free/busy status. * * @param string $status The event status. * * @return string The corresponding free/busy status. */ public function map($status) { if (isset($this->_map[$status])) { return $this->_map[$status]; } else { return parent::map($status); } }
public function testTentativeIsBusyWithDefault() { $mapper = new Horde_Kolab_FreeBusy_Freebusy_Helper_StatusMap_Default(); $this->assertEquals(Horde_Kolab_FreeBusy_Freebusy_Helper_StatusMap::STATUS_BUSY, $mapper->map(Horde_Kolab_FreeBusy_Object_Event::STATUS_TENTATIVE)); }