Browse
For agents
About
ووسلام – همگام سازی ووکامرس و باسلام
/
1.10.18
ووسلام – همگام سازی ووکامرس و باسلام
v1.10.18
Switch version
1.10.18
1.10.17
1.10.15
1.10.14
1.10.13
1.10.12
1.10.10
1.10.9
1.10.8
1.10.7
1.10.6
1.10.5
1.10.4
1.10.3
1.10.2
1.10.1
1.10.0
1.9.2
1.9.1
1.9.0
1.8.8
1.8.5
1.8.6
1.8.7
1.8.4
All 51 releases
Overview
Code
sync-basalam
/
includes
/
Utilities
/
TicketUserResolver.php
TicketUserResolver.php
in ووسلام – همگام سازی ووکامرس و باسلام 1.10.18, at includes/Utilities/TicketUserResolver.php
25 lines
447 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
3
namespace
SyncBasalam
\
Utilities
;
4
5
class
TicketUserResolver
6
{
7
private
const
SYSTEM_USERS
=
[
8
6 => 'پیا�
9
سیست�
10
ی
'
,
11
7 => 'ربات هوش �
12
صنوعی
'
,
13
]
;
14
15
public
static
function
getLabel
(
array
$
user
)
:
string
16
{
17
if
(
isset
(
self
::
SYSTEM_USERS
[
$
user
[
'
id
'
]
]
)
)
return
self
::
SYSTEM_USERS
[
$
user
[
'
id
'
]
]
;
18
19
if (!empty($user['is_admin'])) return 'اد�
20
ین
'
;
21
22
return 'ش�
23
ا
'
;
24
}
25
}