osclass/OSClass — Issue #149: Add helper: osc_reset_resources()
Author: TurbineJesse
Created: 2012-02-14 03:08:05+00:00
State: open

There have been numerous occasions where I'd like to be able to pull from the resources array more than once. But to do so, the array must be "reset". Such a helper function exists for the 'items' array, but not resources. So I suggest adding this to hItems.php:

/**
* Set the internal pointer of array resources to its first element, and return it.
*
* @return array
*/
function osc_reset_resources() {
return View::newInstance()->_reset('resources') ;
}