Example #1
0
# [F[function]]
# [[url]]
# %BR%
# =code=

MOO;

foreach(get_newest() as $line)
{
    echo "\n".clean_func($line["func"])."\n";

    if(strlen($line["group"]) > 0)
        echo "    \\group ".$line["group"]."\n";

    if(strlen($line["cond"]) > 2)
        echo "    \\conditions "._simplify($line["cond"])."\n";

    foreach(get_args($line["func"]) as $param)
    {
        if(strlen($param) > 0 && $param != "...")
        {
            $param = split_var($param);
            $param = $param[1];
            echo "    \\param $param\n";
        }
    }

    if(get_return($line["func"]) !== false)
        echo "    \\return\n";

    echo "    \\description\n";
Example #2
0
# [F[function]]
# [[url]]
# %BR%
# =code=

MOO;

foreach($merged as $func => $line)
{
    echo "\n".clean_func($func)."\n";

    if(strlen($line["group"]) > 0)
        echo "    \\group ".trim($line["group"][0])."\n";

    if(strlen($line["conditions"]) > 2)
        echo "    \\conditions ".trim(_simplify($line["conditions"][0]))."\n";

    if(isset($line["param"]))
    {
        foreach($line["param"] as $param)
        {
            if($param != "...")
                echo "    \\param ".trim($param)."\n";
        }
    }

    if(isset($line["return"]))
    {
        if(trim($line["return"]) == "")
            echo "    \\return\n";
        else