PHP Classes

File: exercise/milkco/run.php

Recommend this page to a friend!
  Packages of Jorge Castro   Chaos Machine One   exercise/milkco/run.php   Download  
File: exercise/milkco/run.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: 10 months ago
Size: 938 bytes
 

Contents

Class file image Download
<?php

use eftec\chaosmachineone\ChaosMachineOne;
use
eftec\PdoOne;

@
set_time_limit(200);

include
"../../vendor/autoload.php";
include_once
"../../lib/en_US/Person.php";
include_once
__DIR__.'/SakilaLib.php';
include_once
"../../lib/en_US/World.php";
include_once
"../../lib/en_US/Address.php";


//$db=new PdoOne("mysql","localhost","root","abc.123","milkco");
$db=new PdoOne('sqlsrv',"PCJC\SQLDEV","sa","ats475","milkco2",false,'');
$db->logLevel=3;
$db->open();



$chaos=new ChaosMachineOne();
$chaos->setDb($db);



//include 'Roles.php';
//include 'Country.php';
// include 'Cities.php';

//include 'ProductTypes.php';
// include 'Employees.php'; // ok
// include 'Branches.php'; // ok


include 'Brands.php'; // ok
include 'Containers.php'; // ok
include 'Customers.php'; // ok
include 'Invoices.php';
include
'InvoiceDetails.php';
include
'ProductSubTypes.php'; // ok
include 'Services.php'; // ok
include 'Products.php'; // ok