#68

Constructor for Item Data

    • Created on: Sun, Jul 17 2011 (10 months ago)
    • Reported by: Pilus
    • Assigned to: Pilus
    • Milestone: GHI v.1.99.1
    • Bug detected in Version: -
    • Technical Difficulty: Easy
    • Status: Fixed
    • Priority: High (2)
    • Component: Renovated Item Data
    • Permission type: None
    • Type: Feature
    • Depends on ticket(s): #53
    The constructor of the itemData object should be upgraded to take a table as input (optional).
    The table contains raw item data and the variables should be initialized from it.

    E.g. if the constuctor table input is taclled 'itemTable', then the name variable could be initialized with name = itemTable.name.

    To make sure that we dont initialize variable we expect to be strings into nil values, some guards should be put on, so it will become.

    if itemTable.name then
    name = itemTable.name
    end

    The name variable are earlier initialized as an empty string, so this is only overwrtten if the itemTable got a name value.
  • Followers
     
    Ico-users Pilus (Assigned To) , NasiasDarkstar 
     
    Attachments
    No attachments
    Associations
     
    No associations
    Activity
     
    User picture

          on Jul 18, 2011 @ 02:09am UTC * By NasiasDarkstar

    Assigned to set to NasiasDarkstar
    Status changed from Accepted to In Progress
    User picture

          on Jul 19, 2011 @ 02:41am UTC * By Pilus

    Description changed from The constructor of the item... to The constructor of the item...
    User picture

          on Jul 19, 2011 @ 02:41am UTC * By Pilus

    I believe it might be needed to convert some of the names to match the old data.
    Would be something along the lines of
    creatorName = itemTable.creater -- yes, that is an old misspelling in the saved data we sadly cant get rid off
    guid = itemTable.ID
    User picture

          on Aug 04, 2011 @ 04:51pm UTC * By Pilus

    Assigned to changed from NasiasDarkstar to Pilus
    Most of this have been implemented now. I will commit it soon
    User picture

          on Aug 09, 2011 @ 02:02pm UTC * By Pilus

    (In revision:343) - API class and progress on ItemInfo (re #53 re #62 re #68)
    User picture

          on Aug 09, 2011 @ 03:26pm UTC * By Pilus

    Status changed from In Progress to Ready for Test
    Work remaining changed from 2.0 to 0.0
    User picture

          on Oct 26, 2011 @ 11:16am UTC * By Pilus

    Status changed from Ready for Test to Fixed
    Time Expenditure
    Loading