Opened 10 years ago

Closed 10 years ago

#66 closed enhancement (fixed)

Need a function to get typeID given typeName

Reported by: simon Owned by: dstillman
Priority: trivial Milestone: 1.0 Alpha 1
Component: data layer Version: 1.0
Keywords: Cc:

Description

I just noticed that with the addition of new types, the typeIDs for each type got switched around. This isn't a serious problem, but it's probably a good idea regardless to use the typeNames for everything, and then look up the associated typeIDs.

Change History (1)

comment:1 Changed 10 years ago by dstillman

  • Resolution set to fixed
  • Status changed from new to closed

(In [274]) Fixes #66, Need a function to get typeID given typeName

  • Added methods getID(idOrName) and getName(idOrName) to Scholar.CreatorTypes and Scholar.ItemTypes to take either typeID or typeName
  • Removed getTypeName() in each and changed references accordingly
  • Streamlined both classes to be as similar as possible
Note: See TracTickets for help on using tickets.