getKeys(false) but with duplicates

Discussion in 'Plugin Development' started by Staartvin, Aug 8, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Staartvin

    Hello developers,

    I was trying to get the children of a certain configuration section, but I noticed that it didn't include duplicate entries.

    Example:

    http://pbrd.co/1cN9GnK

    I try to get the children of 'requirements'.
    getKeys() will only give me 5 entries. One of the 'broken blocks' children is not counted.

    Is there a way to fix this? Perhaps writing a method that does include all children?

    Thanks in advance,

    Staartvin
     
  2. Offline

    Syd

    Keys in configs needs to be unique, otherwise you wouldn't be able to acess the config in a expected way.

    So, you should start changing your config structure.
     
  3. Offline

    Staartvin

    Hmm, okay.
     
  4. Offline

    ZachBora

    what Syd said
     
Thread Status:
Not open for further replies.

Share This Page