cvs: docweb /templates/all/www missingexamples.tpl.php undocfuncs.tpl.php /www missing_examples.php undoc_functions.php
[email protected] ("Matthew Li")
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <cvsmazzanet1118441317@cvsserver> |
mazzanet Fri Jun 10 18:08:37 2005 EDT
Added files:
/docweb/templates/all/www missingexamples.tpl.php
undocfuncs.tpl.php
/docweb/www missing_examples.php undoc_functions.php
Log:
Initial commit of meta tools www
http://cvs.php.net/co.php/docweb/templates/all/www/missingexamples.tpl.php?r=1.1&p=1
Index: docweb/templates/all/www/missingexamples.tpl.php
+++ docweb/templates/all/www/missingexamples.tpl.php
<h1>Functions with missing examples</h1>
There are <?php echo $missingEgCount; ?> functions that are missing examples.
<table>
<?php foreach ($missingEgData as $name => $ext) { ?>
<tr>
<th><?php echo $name.' ('.count($ext).')'; ?></th>
</tr>
<?php foreach ($ext as $function) { ?>
<tr><td valign="top"><?php echo $function; ?></td></tr>
<?php } ?>
<?php } ?>
</table>
http://cvs.php.net/co.php/docweb/templates/all/www/undocfuncs.tpl.php?r=1.1&p=1
Index: docweb/templates/all/www/undocfuncs.tpl.php
+++ docweb/templates/all/www/undocfuncs.tpl.php
<h1>Undocumented Functions</h1>
There are <?php echo $undocCount; ?> undocumented functions.
<table>
<?php foreach ($undocData as $name => $ext) { ?>
<tr>
<th><?php echo $name.' ('.count($ext).')'; ?></th>
</tr>
<?php foreach ($ext as $function) { ?>
<tr><td valign="top"><?php echo $function; ?></td></tr>
<?php } ?>
<?php } ?>
</table>
http://cvs.php.net/co.php/docweb/www/missing_examples.php?r=1.1&p=1
Index: docweb/www/missing_examples.php
+++ docweb/www/missing_examples.php
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
+----------------------------------------------------------------------+
| PHP Documentation Site Source Code |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2005 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available at through the world-wide-web at |
| http://www.php.net/license/3_0.txt. |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Matthew Li <[email protected]> |
+----------------------------------------------------------------------+
*/
require_once '../include/init.inc.php';
define('DOCWEB_DAO_DB_FILE', SQLITE_DIR . 'docweb.sqlite');
$entType = SITE;
if (!$sqlite = @sqlite_open(DOCWEB_DAO_DB_FILE, 0666)) {
echo site_header('docweb.common.header.missing-examples');
echo '<p>Missing examples list not found!</p>'; // templating is your friend
echo site_footer();
exit();
}
$missingEgData = array();
$missingEgCount = 0;
$sql = "
SELECT
extension, function
FROM
missing_examples
";
$undocQ = sqlite_query($sqlite, $sql);
while ($row = sqlite_fetch_array($undocQ)) {
$missingEgData[$row['extension']][] = $row['function'];
$missingEgCount++;
}
echo site_header('docweb.common.header.missing-examples');
echo DocWeb_Template::get(
'missingexamples.tpl.php',
array(
'missingEgData' => $missingEgData,
'missingEgCount' => $missingEgCount,
)
);
echo site_footer();
?>
http://cvs.php.net/co.php/docweb/www/undoc_functions.php?r=1.1&p=1
Index: docweb/www/undoc_functions.php
+++ docweb/www/undoc_functions.php
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
+----------------------------------------------------------------------+
| PHP Documentation Site Source Code |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2005 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available at through the world-wide-web at |
| http://www.php.net/license/3_0.txt. |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Matthew Li <[email protected]> |
+----------------------------------------------------------------------+
*/
require_once '../include/init.inc.php';
define('DOCWEB_DAO_DB_FILE', SQLITE_DIR . 'docweb.sqlite');
$entType = SITE;
if (!$sqlite = @sqlite_open(DOCWEB_DAO_DB_FILE, 0666)) {
echo site_header('docweb.common.header.undoc-functions');
echo '<p>Undocumented function list not found!</p>'; // templating is your friend
echo site_footer();
exit();
}
$undocData = array();
$undocCount = 0;
$sql = "
SELECT
extension, function
FROM
undocumented_functions
";
$undocQ = sqlite_query($sqlite, $sql);
while ($row = sqlite_fetch_array($undocQ)) {
$undocData[$row['extension']][] = $row['function'];
$undocCount++;
}
echo site_header('docweb.common.header.undoc-functions');
echo DocWeb_Template::get(
'undocfuncs.tpl.php',
array(
'undocData' => $undocData,
'undocCount' => $undocCount,
)
);
echo site_footer();
?>