Re: ListViewData.php is in view or controller
The custom files are extentions which allows you to change sugar standard behavior.
For example the two files I listed to you:
[custom]/modules/<module_name>/metadata/listviewdefs.php
modules/<module_name>/views/view.list.php
Both of them theorically are just view files, but you are allowed to customize it the way you want, with your own code.
So, whether do you use this files just for layout stuffs, and for every action you call/request a business object/service to handle that action, it still will be MVC. But whether did you make the bussiness logic directky on these files, it won't be MVC anymore.
There is many ways to separete view from control, one example is using the custom file named Controller.php which could be located on module root folder. This file can have methods to be called by actions invoked from screens.
Rafael Queiroz Gonçalves
Advanced OMG UML Certified Professional
Sun Certified Enterprise Architect for the Java Platform
Sun Certified Programmer for the Java 2 Platform
IBM Certified Advanced Application Developer - Lotus Notes and Domino
IBM Certified Application Developer - IBM WebSphere Portlet Factory
Computer Science Mastering / UFSC - PPGCC
Bookmarks