Пример #1
0
$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">
                <?php 
    echo htmlentities($parser->getNotationValue($notation));
    ?>
            </td>
            <td align="center">
Пример #2
0
    <?php 
foreach ($notations as $notation) {
    ?>
        <tr>
            <td>
                <?php 
    var_dump($notation);
    ?>
            </td>
            <td align="center">
                <?php 
    echo $parser->getNotationValue($notation);
    ?>
            </td>
            <td align="center">
                <strong><?php 
    echo $parser->getNotationType($notation);
    ?>
</strong>
            </td>
            <td>
                <pre><?php 
    echo var_dump($parser->getNotationAttributes($notation));
    ?>
</pre>
            </td>
        </tr>
    <?php 
}
?>
</table>