I have an array object that is an output of a magento fetchall from DB and i want this to be converted to an object of a Collections class so that i can implement pagination
In order to convert an array to a collection object:
1> Create an instance of Varien_Db_Collection
$collection = new Varien_Data_Collection();
2> Create an instance of Varien_Object and set the array data
$rowObj = new Varien_Object();
$rowObj->setData($row);
3> Finally add the Varien_Object to Collection instance
$collection->addItem($rowObj);
4> Now $collection is a collection object.