For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > September 2005 > cvs: phpdoc /scripts file-entities.php.in









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /scripts file-entities.php.in
Nuno Lopes

2005-09-24, 6:56 pm

nlopess Sat Sep 24 19:28:42 2005 EDT

Modified files:
/phpdoc/scripts file-entities.php.in
Log:
order extensions by titleabbreb, as it is used in the left menu of php.net docs.
also sort data only once, instead of once per extension :)

http://cvs.php.net/diff.php/phpdoc/...39&r2=1.40&ty=u
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.39 phpdoc/scripts/file-entities.php.in:1.40
--- phpdoc/scripts/file-entities.php.in:1.39 Sun Aug 21 12:27:08 2005
+++ phpdoc/scripts/file-entities.php.in Sat Sep 24 19:28:42 2005
@@ -17,7 +17,7 @@
| Gabor Hojtsy <goba@php.net> |
+----------------------------------------------------------------------+

- $Id: file-entities.php.in,v 1.39 2005/08/21 16:27:08 goba Exp $
+ $Id: file-entities.php.in,v 1.40 2005/09/24 23:28:42 nlopess Exp $
*/

/**
@@ -81,8 +81,8 @@
if (!$title) $title = $dirent; // extension name is close enough
$builtin_extensions[$title] = "&reference.$dirent.reference;";
}
- ksort($builtin_extensions);
}
+ksort($builtin_extensions);

create_part_file("entities/builtin-extensions.xml", $builtin_extensions, 'funcref', '&FunctionReference;');
$entities[] = entstr("builtin.extensions", "$out_dir/entities/builtin-extensions.xml");
@@ -453,6 +453,10 @@
* ... but this is probably good enough for 98.5% of extensions
*/

+ if (preg_match("#titleabbrev>(.*?)</titleabbrev>#", $contents, $matches)) {
+ return strtoupper(trim($matches[1]));
+ }
+
if (preg_match("#<title>(.*?)</title>#", $contents, $matches)) {
return strtoupper(trim($matches[1]));
}
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com