/** * Checks if entry is vcalendar 1.0, vcard 2.1 or vnote 1.1. * * These 'old' formats are defined by www.imc.org. The 'new' (non-old) * formats icalendar 2.0 and vcard 3.0 are defined in rfc2426 and rfc2445 * respectively. * * @since Horde 3.1.2 */ function isOldFormat() { if ($this->_container !== false) { return $this->_container->isOldFormat(); } if ($this->getType() == 'vcard') { return $this->_version < 3 ? true : false; } if ($this->getType() == 'vNote') { return $this->_version < 2 ? true : false; } if ($this->_version >= 2) { return false; } return true; }