I have the following hook method:
I can obtain the VIEW like so:
$view = $vars['view'];
When I dump this result I can see a complex structure with all the data I need...the VIEW can be iterated via:
foreach ($view->result as $index => $record)
Each records data (node details) is navigable via the following path:
I am uneasy accessing these details with the second property in this chain as usually "underscore" represents private...maybe it is just the OO purist in mean telling me it's bad practice and I am defeating OCP. :)
Ultimately I need the ability to iterate my custom fields and this seems to be the only way I can achieve that -- is there not a API which would encapsulate this access for me?
I assumed the $view object itself would have an API to provide traversing methods or at least result iteration, but it doesn't appear that way.