PHP Classes
elePHPant
Icontem

File: data.json

Recommend this page to a friend!
  Classes of Nahid Bin Azhar  >  PHP JSON DB Library  >  data.json  >  Download  
File: data.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP JSON DB Library
Manage a database with data stored in JSON files
Author: By
Last change:
Date: 4 months ago
Size: 751 bytes
 

 

Contents

Class file image Download
{
	"name":"erp",
	"extention":"jsondb",
	"type":"database",
	"version": "1.0.1",
	"__map":{
		"home":{
			"__map":"0"	
		},
		"products":{
			"__map":"1",
			"items":{
				"__map":"1-1"
			}
		}
	}
}



//0
	{
		"name":"0",
		"parent":"db",
		"key":"home",
		"__data":{
			"title":"Home | Factum",
			"contents":"<body>some text</body>"
			}
	}

//1
		{
			"name":"1",
			"parent":"db",
			"key":"products",
			"__data":{
				"title":"Products | Factum",
				"items":":map>>>_1"
				}
		}


//1-1
		
		{
			"name":"1-1",
			"parent":"1",
			"key":"items",
			"__data":[
				{"id":1, "name":"Microsoft Lumia", "category":"mobile"},
				{"id":2, "name":"iPhone 5s", "category":"mobile"},
				{"id":3, "name":"MacBook Pro", "category":"laptop"}
				]
		}