コード例 #1
0
ファイル: Test.php プロジェクト: Zetetikos/SMS
<?php

require $_SERVER["DOCUMENT_ROOT"] . '/vendor/autoload.php';
use SMS\App\Modules\Setup\Controller\SetupController as Setup;
// $controller = new SetupController();
// $controller->createTable("Students Of Chs", "Student's table");
// $controller->createField("Students of chs", "First Name", "varchar(10)", "Student's First Name");
// $controller->createField("Students of chs", "Last Name", "varchar(10)", "Student's Last Name");
// $controller->createField("Students of chs", "Middle Name", "varchar(10)", "Student's Middle Name");
// $controller->createField("Students of chs", "Date Of Birth", "datetime", "Student's Date Of Birth");
// $controller->createTable("Parent", "Parent Table");
$setup = new Setup();
//echo $setup->deleteDatabase();
print_r($setup->getTableFields("Staffs"));
コード例 #2
0
ファイル: TableColumns.php プロジェクト: Zetetikos/SMS
<?php

require $_SERVER["DOCUMENT_ROOT"] . '/vendor/autoload.php';
use SMS\App\Modules\Setup\Controller\SetupController as Setup;
if (isset($_GET)) {
    $table = $_GET["table"];
    $setup = new Setup();
    echo json_encode($setup->getTableFields($table));
}