include/MVC/View/views/view.fts.php
\ViewFts
Base Sugar view
- Parent(s)
- \SugarView
Properties
$errors= 'array()'
Any errors that occured this can either be set by the view or the controller or the model
Inherited from: \SugarView::$$errors
$options= 'array('show_header' => true, 'show_title' => true, 'show_subpanels' => false, 'show_search' => true, 'show_footer' => true, 'show_javascript' => true, 'view_print' => false,)'
$ss= 'null'
Sugar_Smarty. This is useful if you have a view and a subview you can share the same smarty object.
Inherited from: \SugarView::$$ss
$suppressDisplayErrors= 'false'
Set to true if you do not want to display errors from SugarView::displayErrors(); instead they will be returned
Inherited from: \SugarView::$$suppressDisplayErrors
$view_object_map= 'array()'
This array is meant to hold an objects/data that we would like to pass between the controller and the view. The bean will automatically be set for us, but this is meant to hold anything else.
Inherited from: \SugarView::$$view_object_mapMethods
checkPostMaxSizeError(
)
:
boolean
Determines whether the state of the post global array indicates there was an error uploading a file that exceeds the post_max_size setting. Such an error can be detected if: 1. The Server['REQUEST_METHOD'] will still point to POST 2. POST and FILES global arrays will be returned empty despite the request method This also results in a redirect to the home page (due to lack of module and action in POST)
Inherited from: \SugarView::checkPostMaxSizeError()display(
$return
=
false, $encode
=
false
)
:
void
[OVERRIDE] - This method is meant to overidden in a subclass. This method will handle the actual display logic of the view.
displayErrors(
)
:
void
This method will display the errors on the page.
Inherited from: \SugarView::displayErrors()displayFooter(
)
:
void
Called from process(). This method will display the footer on the page.
Inherited from: \SugarView::displayFooter()displayHeader(
$retModTabs
=
false
)
:
void
Displays the header on section of the page; basically everything before the content
Inherited from: \SugarView::displayHeader()getBreadCrumbSymbol(
)
:
string
Returns the correct breadcrumb symbol according to theme's directionality setting
Inherited from: \SugarView::getBreadCrumbSymbol()getBrowserTitle(
)
:
string
Returns the string which will be shown in the browser's title; defaults to using the same breadcrumb as in the module title
Inherited from: \SugarView::getBrowserTitle()getJavascriptValidation(
)
:
void
Get JS validation code for views
Inherited from: \SugarView::getJavascriptValidation()getMetaDataFile(
)
:
string
Return the metadata file that will be used by this view.
Inherited from: \SugarView::getMetaDataFile()getModuleTitle(
bool $show_help
=
true
)
:
\HTML
Return the "breadcrumbs" to display at the top of the page
Inherited from: \SugarView::getModuleTitle()includeClassicFile(
string $file
)
:
void
If the view is classic then this method will include the file and setup any global variables.
Inherited from: \SugarView::includeClassicFile()init(
$bean
=
null, $view_object_map
=
array()
)
:
void
preDisplay(
)
:
void
[OVERRIDE] - This method is meant to overidden in a subclass. The purpose of this method is to allow a view to do some preprocessing before the display method is called. This becomes useful when you have a view defined at the application level and then within a module have a sub-view that extends from this application level view. The application level view can do the setup in preDisplay() that is common to itself and any subviews and then the subview can just override display(). If it so desires, can also override preDisplay().
Inherited from: \SugarView::preDisplay()process(
)
:
void
This method will be called from the controller and is not meant to be overridden.
Inherited from: \SugarView::process()