PHP Classes

File: exercise/examplespeed.php

Recommend this page to a friend!
  Packages of Jorge Castro   Chaos Machine One   exercise/examplespeed.php   Download  
File: exercise/examplespeed.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Chaos Machine One
Generate random data that obeys to formulas
Author: By
Last change:
Date: 8 months ago
Size: 490 bytes
 

Contents

Class file image Download
<?php
use eftec\chaosmachineone\ChaosMachineOne;
use
eftec\PdoOne;
use
eftec\minilang\MiniLang;
include
"../vendor/autoload.php";
include
"../lib/en_US/Person.php";
$chaos=new ChaosMachineOne();

$chaos
   
->table('table',10)
    ->
field('v1','int','local',1)
    ->
field('v2','int','local',1)
    ->
gen('when always then v1.speed=2')
    ->
gen('when always then v2=v1')

    ->
showTable(['v1','v2'])
    ->
run();
$idTest=$chaos->getDictionary('v1');
$idtest2=$chaos->getDictionary('v2');