-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIbrowsEasySysBundle.php
54 lines (46 loc) · 1.2 KB
/
IbrowsEasySysBundle.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
namespace Ibrows\EasySysBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class IbrowsEasySysBundle extends Bundle
{
const types = "
article
article_type
bank_account
calendar_type
client_service
communication_kind
contact
contact_branch
contact_group
contact_relation
contact_type
country
currency
kb_order
kb_offer
kb_invoice
language
logopaper
monitoring
monitoring_status
payment_type
salutation
stock
stock_place
tax
title
unit
user
";
public static function getTypes()
{
$arr = preg_split('/\s+/', trim(self::types)) ;
$arr2 = array();
foreach($arr as $type){
$internaltype = str_replace('kb_', '', $type);
$arr2[$internaltype] = $type;
}
return $arr2;
}
}