QListControl AllItems Getter

thread: 2 messages  |  last: a year ago  |  started: monday, april 19, 2010, 3:29 pm pdt


#1  |  krusty (Vancouver, BC) Canada
Monday, April 19, 2010, 3:29 PM PDT

I'm having a frustrating time implementing a two-listbox solution where i'm moving items back and forth between the listboxes.

The main source of frustration is the lack of an 'AllItems' getter property, so I can compare selected items against the whole list to have them removed.

Quick and dirty patch against the latest code release is to add the following to QListControl (within the __get() method):

case “AllItems”: return $this->objItemsArray;

Can we have this applied to the core framework?

#2  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Wednesday, April 21, 2010, 5:16 PM PDT

yeah, should be no problem.

Exept I might prefer having it as a method instead of a property, to be consistent with the other methods dealing with the itemarray in QListControl.

Regardless, could you open up a ticket for this in the issue tracker?

Thanks.



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.