PHP Classes

File: Exemplo/GenerateModel.php

Recommend this page to a friend!
  Classes of Maicon gonšalez   PHP JSON DB Class   Exemplo/GenerateModel.php   Download  
File: Exemplo/GenerateModel.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP JSON DB Class
Manipulate JSON data as database tables
Author: By
Last change: Update Erros Relational Models
Date: 7 years ago
Size: 1,467 bytes


Class file image Download
# View Full Documentation On

* JsonDb_Create Class to create model
* @Arg Name of Model
$Create = new JsonDb_Create("Users");

* @method setColun Define the columns of your document
* @Args
* $Name - Name of Column,
* $type - Type Data,
* $default - Default value if not set to save or set a Array for single or multiple options
* $description - Column Description
* $Create->setColun($name,$type,$sizeVal = null,$default = null,$description = null);

* @method setMany Define the relational model
* @Args
* $model - Name relational Model,
* $key1 - Column of the Current Model,
* $key2 - Column of the Relational Model
* $Create->setMany($model,$key1,$key2);

//Save Model

//Create Relational Model
$Create = new JsonDb_Create("Adress");