示例#1
0
                if (strncmp($Tag[0], "param:", 6) === 0) {
                    continue;
                }
                echo '<div class="bs-callout bs-callout-danger" style="padding:0;border:0"><h4>' . htmlspecialchars($Tag[0]) . '</h4>';
                RenderDescription($Tag[1]);
                echo '</div>';
            }
        }
        echo '</div>';
    }
} else {
    if ($PageType['kind'] === 'typedef') {
        ?>

<pre class="syntax"><span class="type">typedef</span> <?php 
        echo $PageType['name'] . ' = ' . HighlightTypes($Data['type'], $Data['tags'], []);
        ?>
</pre>

<?php 
        if (isset($Data['tags'])) {
            ?>
<h4 class="sub-header2">Tags</h4>
<dl>
<?php 
            RenderShortArgs($Data['tags']);
            ?>
</dl>
<?php 
        }
        ?>
示例#2
0
}
?>

<?php 
if (isset($Data['return'])) {
    $Type = NormalizeType($Data['return']['type']);
    echo '<pre class="syntax">';
    if (isset($Types[$Type])) {
        echo '<a href="' . $BaseURL . $Types[$Type] . '/' . $Type . '" class="type b">' . htmlspecialchars($Data['return']['type']) . '</a>';
    } else {
        echo '<span class="type b">' . htmlspecialchars($Data['return']['type']) . '</span>';
    }
    echo HighlightTypes(substr($PageFunction['signature'], strlen($Data['return']['type'])), $Parameters, $Types);
    echo '</pre>';
} else {
    echo '<pre class="syntax">' . HighlightTypes($PageFunction['signature'], $Parameters, []) . '</pre>';
}
?>

<?php 
if (!empty($Parameters)) {
    ?>
<h4 class="sub-header2">Parameters</h4>

<dl>
<?php 
    foreach ($Parameters as $Param) {
        echo '<dt class="mono">';
        $Type = NormalizeType($Param['type']);
        if (isset($Types[$Type])) {
            echo '<a href="' . $BaseURL . $Types[$Type] . '/' . $Type . '" class="type">' . htmlspecialchars($Param['type']) . '</a> ';