forked from ProcessMaker/processmaker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsonData.php
More file actions
29 lines (24 loc) · 725 Bytes
/
JsonData.php
File metadata and controls
29 lines (24 loc) · 725 Bytes
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
<?php
namespace ProcessMaker\Models;
/**
* Application Data
*/
class JsonData extends ProcessMakerModel
{
public static function timezones()
{
return json_decode(file_get_contents(resource_path() . '/js/data/timeszones.json'), false);
}
public static function states()
{
return json_decode(file_get_contents(resource_path() . '/js/data/states_hash.json'), true);
}
public static function countries()
{
return json_decode(file_get_contents(resource_path() . '/js/data/countries.json'), true);
}
public static function datetimeFormats()
{
return json_decode(file_get_contents(resource_path() . '/js/data/datetime_formats.json'), true);
}
}