cvs: functable /lib/statistics undocumented_functions.php
| From: | Hartmut Holzgraefe | Date: | Tue, 28 May 2002 11:43:13 +0000 |
| Subject: | cvs: functable /lib/statistics undocumented_functions.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12147@lists.php.net to get a copy of this message | ||
hholzgra Tue May 28 07:43:13 2002 EDT
Added files:
/functable/lib/statistics undocumented_functions.php
Log:
initial checkin
Index: functable/lib/statistics/undocumented_functions.php
+++ functable/lib/statistics/undocumented_functions.php
<?php
include "undocumented.php";
head(false,false,"Statistics","Functions not (yet) Documented");
$result = mysql_query("SELECT DISTINCT
funclist.function AS fname
FROM funclist
LEFT JOIN docfile ON funclist.function = docfile.function
WHERE funclist.versionid = 499
AND funclist.alias_for IS NULL
AND docfile.function IS NULL
ORDER BY funclist.filename
, funclist.function
");
$rows=array();
while($row=mysql_fetch_array($result)) {
$rows[$row['fname']] = $row;
}
mysql_free_result($result);
$query = "SELECT DISTINCT
funclist.alias_for AS fname
FROM funclist
LEFT JOIN docfile ON funclist.function = docfile.function
WHERE funclist.versionid = 499
AND funclist.alias_for IN
('".join("','",array_keys($rows))."')
AND docfile.function IS NOT NULL
ORDER BY funclist.filename
, funclist.function
";
$result = mysql_query($query);
while($row=mysql_fetch_array($result)) {
unset($rows[$row['fname']]);
}
mysql_free_result($result);
$count['nodoku']=count($rows);
$count['nodoku_reason']=0;
print( "<form action='../lib/proto2xml.php'
method='post'><table>
<tr bgcolor=\"$bgcolor\">
<th>function</th>
<th>introduced into PHP 4 by</th>
<th>reason</th>
</tr>\n");
foreach($rows as $row) {
bg_toggle();
print("<tr bgcolor=\"$bgcolor\">");
print("<td>".fpage($row["fname"])."</td>");
print("<td>".(isset($author[$row["fname"]])?author_ref($author[$row["fname"]]):"")."</td>");
if(isset($undocumented[$row['fname']])) {
print("<td>".$undocumented[$row['fname']]."</td>");
$count['nodoku_reason']++;
} else {
print("<td> </td>");
}
# print("<td><input type='checkbox' name='function[]'
value='$row[fname]'></td>");
print("</tr>\n");
}
print( "</table><input type='submit'></form>\n");
foot("$outdir/nodoku.$ext","w");
?>