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
28 lines (23 loc) · 767 Bytes
/
JsonData.php
File metadata and controls
28 lines (23 loc) · 767 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
<?php
namespace ProcessMaker\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Application Data
*
* @package ProcessMaker\Models
*/
class JsonData extends Model
{
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);
}
}