Most of the time during the customization, we need at one time to use a getData()
on an object exemple $_item = $this->getItem();
to retrieve the datas and see if we have what we are looking for, except that sometimes we come across a large number of items So that it takes a long time to load and sometimes even go to the time out.
My question is: it is possible to add a limit on the getData()
? or if you have other tricks to get the datas of an object, that would be welcome.
EDIT:
To clarify better what i want, I know that I can filter by name like getData('attribute_name')
but admit that I'm looking for 20 attributes, so to not mention them all one by one. I wanted to know if there was a way to limit theme per (100) for exemple.
How do you do when you want to know the data present in some object that you don't know what it contains ?