コード例 #1
0
ファイル: class.php プロジェクト: javanile/schemadb
<?php

//
require_once __DIR__ . '/../_common.php';
//
$notations = ['<<Class>>', '<<Class*>>', '<<Class**>>', '<<Class lookupField>>', '<<Class lookupField*>>', '<<Class lookupField**>>', '<<Name\\Class>>', '<<Name\\Space\\Class*>>', '<<Name\\Space\\Class**>>', '<<Name\\Space\\Class lookupField>>', '<<Name\\Space\\Class lookupField*>>', '<<Name\\Space\\Class lookupField**>>', '<<Name\\Space\\Class lookupField secondLookupField>>', '<<Name\\Space\\Class lookupField secondLookupField*>>', '<<Name\\Space\\Class lookupField secondLookupField**>>'];
//
$parser = new Javanile\SchemaDB\Parser\Mysql();
?>

<table border=1 cellpadding=4>
    <tr>
        <th>Notation</th>
        <th>Value</th>
        <th>Type</th>
        <th>Column</th>
    </tr>
    
    <?php 
foreach ($notations as $notation) {
    $aspects = $parser->getNotationAttributes($notation);
    ?>

        <tr>
            <td>
                <pre><?php 
    var_dump(htmlentities($notation));
    ?>
</pre>
            </td>
            <td align="center">
コード例 #2
0
ファイル: integer.php プロジェクト: javanile/schemadb
<?php

//
error_reporting(E_ALL);
ini_set('display_errors', 1);
//
require_once __DIR__ . '/../../../../autoload.php';
//
$notations = array(\Javanile\SchemaDB\Notations::INT_20);
//
$parser = new Javanile\SchemaDB\Parser\Mysql();
?>

<table border=1 cellpadding=4>

    <tr>
        <th>Notation</th>
        <th>Value</th>
        <th>Type</th>
        <th>Column</th>
    </tr>
    
    <?php 
foreach ($notations as $notation) {
    ?>
        <tr>
            <td>
                <?php 
    var_dump($notation);
    ?>
            </td>