-
Notifications
You must be signed in to change notification settings - Fork 0
/
helpers.php
executable file
·170 lines (167 loc) · 3.77 KB
/
helpers.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<?php
function ttt()
{
dd('testing');
}
if (!function_exists('cronjob_frequencies')) {
function cronjob_frequencies()
{
return Help::cronjob_frequencies();
}
}
if (!function_exists('timezones')) {
function timezones()
{
return Help::timezones();
}
}
if (!function_exists('queue_keys')) {
function queue_keys($driver = 'redis')
{
return Help::queue_keys($driver);
}
}
if (!function_exists('qs_url')) {
function qs_url($path = null, $qs = [], $secure = null)
{
return Help::qs_url($path, $qs, $secure);
}
}
if (!function_exists('prettyPrintJson')) {
function prettyPrintJson($value = '')
{
return Help::prettyPrintJson($value);
}
}
if (!function_exists('settings')) {
function settings($name, $default = '')
{
return Help::settings($name, $default);
}
}
if (!function_exists('rebuildUrl')) {
function rebuildUrl($url, $params = [])
{
return Help::rebuildUrl($url, $params);
}
}
if (!function_exists('findHashTag')) {
function findHashTag($string)
{
return Help::findHashTag($string);
}
}
if (!function_exists('getModels')) {
function getModels($path, $namespace)
{
return Help::getModels($path, $namespace);
}
}
if (!function_exists('getModelsList')) {
function getModelsList()
{
return Help::getModelsList();
}
}
if (!function_exists('audit')) {
function audit($message, $data = [], $model = null, $ip = '')
{
return Help::audit($message, $data, $model, $ip);
}
}
if (!function_exists('agent')) {
function agent()
{
return Help::agent();
}
}
if (!function_exists('agents')) {
function agents($key = '')
{
return Help::agents($key);
}
}
if (!function_exists('opendns')) {
function opendns()
{
return Help::opendns();
}
}
if (!function_exists('iplocation')) {
function iplocation($ip = '')
{
return Help::iplocation($ip);
}
}
if (!function_exists('scan_langs_dir')) {
function scan_langs_dir()
{
return Help::scan_langs_dir();
}
}
if (!function_exists('pushered')) {
function pushered($data = [], $channel = '', $event = 'general')
{
return Help::pushered($data, $channel, $event);
}
}
if (!function_exists('isMenuActive')) {
function isMenuActive($patterns = [])
{
return Help::isMenuActive($patterns);
}
}
if (!function_exists('viewRenderer')) {
function viewRenderer($__php, $__data = [])
{
return Help::viewRenderer($__php, $__data);
}
}
if (!function_exists('route_slug')) {
function route_slug($name, string $slug = '', array $parameters = [], $locale = '', $absolute = true)
{
return Help::route_slug($name, $slug, $parameters, $locale, $absolute);
}
}
if (!function_exists('getBrandNameByHost')) {
function getBrandNameByHost($domain = '')
{
return Help::getBrandNameByHost($domain);
}
}
if (!function_exists('getDomain')) {
function getDomain($brandName = '')
{
return Help::getDomain($brandName);
}
}
if (!function_exists('brand')) {
function brand($brandName = '')
{
return Help::brand($brandName);
}
}
if (!function_exists('renderSlug')) {
function renderSlug($slug, $locale = '')
{
return Help::renderSlug($slug, $locale);
}
}
if (!function_exists('getBrand')) {
function getBrand($brandName)
{
return Help::getBrand($brandName);
}
}
if (!function_exists('sendAlert')) {
function sendAlert(array $data = [])
{
return Help::sendAlert($data);
}
}
if (!function_exists('permissionUserIds')) {
function permissionUserIds($permission, $brand_id = 0)
{
return Help::permissionUserIds($permission, $brand_id);
}
}