| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/AppointmentScheduler-Don/modules/ModuleBuilder/Module/ |
Upload File : |
<?php
class IconRepository
{
const DEFAULT_ICON = 'default';
const ICON_LABELS = 'labels';
const ICON_FIELDS = 'fields';
const ICON_RELATIONSHIPS = 'relationships';
const ICON_LAYOUTS = 'layouts';
const ICON_SUBPANELS = 'labels';
/**
* @var array
*/
private static $iconNames = [
AOS_Contracts::class => 'aos-contracts-signature',
AOR_Scheduled_Reports::class => 'aor-reports',
'EmailTemplates' => 'emails',
'Employees' => 'users',
jjwg_Address_Cache::class => 'jjwg-markers',
'ProjectTask' => 'am-tasktemplates',
AM_ProjectTemplates::class => 'am-tasktemplates',
'SurveyQuestionResponses' => 'survey-responses',
'SurveyResponses' => 'survey-responses',
'Prospects' => 'targets'
];
/**
* @param string $module
*
* @return string
*/
public static function getIconName($module)
{
return static::$iconNames[$module] ?? strtolower(str_replace('_', '-', $module));
}
}