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
If you have an array of ids $product_ids, you can use:
$product_ids
$collection = Mage::getModel('catalog/product')->getCollection() ->addIdFilter($product_ids);