include/utils/autoloader.php
\SugarAutoLoader
Package:
Parameters
Returns
Details
Properties
$map= 'array(
'XTemplate'=>'XTemplate/xtpl.php',
'ListView'=>'include/ListView/ListView.php',
'Sugar_Smarty'=>'include/Sugar_Smarty.php',
'Javascript'=>'include/javascript/javascript.php',
'SugarSearchEngineFullIndexer'=>'include/SugarSearchEngine/SugarSearchEngineFullIndexer.php',
'SugarSearchEngineSyncIndexer'=>'include/SugarSearchEngine/SugarSearchEngineSyncIndexer.php',
)'
static
Default value
array(
'XTemplate'=>'XTemplate/xtpl.php',
'ListView'=>'include/ListView/ListView.php',
'Sugar_Smarty'=>'include/Sugar_Smarty.php',
'Javascript'=>'include/javascript/javascript.php',
'SugarSearchEngineFullIndexer'=>'include/SugarSearchEngine/SugarSearchEngineFullIndexer.php',
'SugarSearchEngineSyncIndexer'=>'include/SugarSearchEngine/SugarSearchEngineSyncIndexer.php',
)
Details- Type
- n/a
Methods
getFilenameForSugarWidget(
\$class $class
)
:
String
static
getFilenameForSugarWidget This method attempts to autoload classes starting with name "SugarWidget". It first checks for the file in custom/include/generic/SugarWidgets directory and if not found defaults to include/generic/SugarWidgets.
This method is used so that we can easily customize and extend these SugarWidget classes.
Name | Type | Description |
---|---|---|
$class | \$class | String name of the class to load |
Type | Description |
---|---|
String | file of the SugarWidget class; false if none found |
- Static