include/MVC/View/ViewFactory.php
\ViewFactory
Package: SugarCRM
Sugar view factory
- Api
Methods

_buildClass(
string $class, object $bean, array $view_object_map
)
:
\SugarViewinstantiate the correct view and call init to pass on any obejcts we need to from the controller.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $class | string | class - the name of the class to instantiate |
| $bean | object | bean = the bean to pass to the view |
| $view_object_map | array | view_object_map - the array which holds obejcts to pass between the controller and the view. |
| Type | Description |
|---|---|
| \SugarView |

_buildFromFile(
$file, $bean, $view_object_map, $type, $module
)
:
\aThis is a private function which just helps the getView function generate the proper view object
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $file | ||
| $bean | ||
| $view_object_map | ||
| $type | ||
| $module |
| Type | Description |
|---|---|
| \a | valid SugarView |

_loadConfig(
$view, $type
)
:
voidLoad the view_
Parameters
| Name | Type | Description |
|---|---|---|
| $view | ||
| $type |