Newer
Older
* @param string $entityType (optional) - Restrict templates to those for $entityType
use QUI\ERP\Output\Output as ERPOutput;
use QUI\Utils\Security\Orthos;
QUI::$Ajax->registerFunction(
'package_quiqqer_erp_ajax_output_getTemplates',
return ERPOutput::getTemplates(Orthos::clear($entityType));
},
['entityType'],
'Permission::checkAdminUser'
);