include/MVC/View/ViewFactory.php

Show: inherited
Table of Contents

\ViewFactory

Package: SugarCRM

Sugar view factory

Api
 

Methods

methodpublic_buildClass( string $class, object $bean, array $view_object_map ) : \SugarView

instantiate the correct view and call init to pass on any obejcts we need to from the controller.

Parameters
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.

Returns
Type Description
\SugarView
methodpublic_buildFromFile(  $file,  $bean,  $view_object_map,  $type,  $module ) : \a

This is a private function which just helps the getView function generate the proper view object

Parameters
Name Type Description
$file
$bean
$view_object_map
$type
$module
Returns
Type Description
\a valid SugarView
methodpublic_loadConfig(  $view,  $type ) : void

Load the view__config.php file which holds options used by the view.

Parameters
Name Type Description
$view
$type
methodpublicloadView( string $type = 'default',  $module,  $bean = null,  $view_object_map = array(),  $target_module = '' ) : \valid

load the correct view

Parameters
Name Type Description
$type string

View Type

$module
$bean
$view_object_map
$target_module
Returns
Type Description
\valid view
Documentation was generated by DocBlox 0.18.1.