public static function isValid(&$properties_dictionary, $limit_to_keys, &$error) { // Check each property is valid // if (!parent::isValid($properties_dictionary, $limit_to_keys, $error)) { return false; } if (ValidationC::should_test_property(EVENT_TYPE_BIRTHDAY_KEY_DATE_OF_BIRTH, $properties_dictionary, true, $limit_to_keys) && !EventTypeBirthday::propertyIsValid(EVENT_TYPE_BIRTHDAY_KEY_DATE_OF_BIRTH, $properties_dictionary[EVENT_TYPE_BIRTHDAY_KEY_DATE_OF_BIRTH], $error)) { // DOB was not valid // return false; } return true; }
static function labels($type) { if ($type === 'EventTypeAnniversary') { return EventTypeAnniversary::labels(); } else { if ($type === 'EventTypeAnniversaryWedding') { return EventTypeAnniversaryWedding::labels(); } else { if ($type === 'EventTypeBirthday') { return EventTypeBirthday::labels(); } else { if ($type === 'EventTypeCelebration') { return EventTypeCelebration::labels(); } else { if ($type === 'EventTypeGigMusic') { return EventTypeGigMusic::labels(); } else { if ($type === 'EventTypeGigComedy') { return EventTypeGigComedy::labels(); } else { if ($type === 'EventTypeParty') { return EventTypeParty::labels(); } else { if ($type === 'EventTypePartyLaunch') { return EventTypePartyLaunch::labels(); } } } } } } } } return EventType::labels(); }