[Sugg./Req.] API addition: methods for looping through existing/old shops #376


  • Accepted
Open
Assigned to acrobotpl
  • _ForgeUser7531807 created this issue Sep 25, 2012

    Suggestion / request to the existing ChestShop API (part 2):

    I'd like to see a few methods that can assist an external plugin in iterating through all existing ChestShop's. Maybe one set of methods to allow looping through all shop owners and maybe another set for looping through each shop owned by the selected owner. I don't know if that model is suitable for the current implementation of how ChestShop stores this information or if it would be easier to just define some methods that'll loop through all shops in the order they were created regardless of who owns the shop. Which ever model is easier to implement will suit me fine for my project.

    These methods would allow my plugin to correctly find and report all owned shops on the server to the web interface of my shop index. Otherwise my plugin would only be able to "register" newly created shops after the install date of my plugin and not any shops created before.

    Reason: I'm working on an expanded version of my 2011 CHShops shop index project (for details; the interview is still available at crafthub.net - 2011/7/18).

    Thanks
    Sharidan

  • _ForgeUser7531807 added the tags New Enhancment Sep 25, 2012
  • AcrobotPL posted a comment Sep 25, 2012

    Cannot be added currently, as ChestShop uses no database at the moment. However, in future, sure.

  • AcrobotPL removed a tag New Sep 25, 2012
  • AcrobotPL added a tag Waiting Sep 25, 2012
  • _ForgeUser7531807 posted a comment Sep 25, 2012

    No problemo - we'll just wait and see what the future brings.

    Thanks Acro :)

  • _ForgeUser7531807 removed a tag Waiting Sep 25, 2012
  • _ForgeUser7531807 added a tag Replied Sep 25, 2012
  • AcrobotPL removed a tag Replied Sep 26, 2012
  • AcrobotPL added a tag Accepted Sep 26, 2012
  • _ForgeUser8831190 posted a comment Apr 7, 2013

    I think this plugin is good for its simplicity.
    A database could introduce a lot of problems IMHO.
    I suggest you stay this way.


To post a comment, please login or register a new account.