modules/Settings/SharingAccess/views/Index.php
<?php
/**
* Settings SharingAccess index view class.
*
* @copyright YetiForce S.A.
* @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
*/
class Settings_SharingAccess_Index_View extends Settings_Vtiger_Index_View
{
/**
* Process.
*
* @param \App\Request $request
*/
public function process(App\Request $request)
{
$viewer = $this->getViewer($request);
$moduleName = $request->getModule();
$qualifiedModuleName = $request->getModule(false);
$viewer->assign('ALL_MODULES', Settings_SharingAccess_Module_Model::getAll(true));
$viewer->assign('ALL_ACTIONS', Settings_SharingAccess_Action_Model::getAll());
$viewer->assign('MODULE', $moduleName);
$viewer->assign('DEPENDENT_MODULES', Settings_SharingAccess_Module_Model::getDependentModules());
$viewer->view('Index.tpl', $qualifiedModuleName);
}
/**
* Function to get the list of Script models to be included.
*
* @param \App\Request $request
*
* @return <Array> - List of Vtiger_JsScript_Model instances
*/
public function getFooterScripts(App\Request $request)
{
return array_merge(parent::getFooterScripts($request), $this->checkAndConvertJsScripts([
'modules.Settings.Vtiger.resources.Index',
"modules.Settings.{$request->getModule()}.resources.Index",
]));
}
}