From b69fca14e76a2f5db0cd0924fe5e7056e94771b1 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 26 Feb 2013 15:49:37 -0800 Subject: initial doco --- doc/html/namespaceutil.html | 154 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 doc/html/namespaceutil.html (limited to 'doc/html/namespaceutil.html') diff --git a/doc/html/namespaceutil.html b/doc/html/namespaceutil.html new file mode 100644 index 000000000..fd3ba055a --- /dev/null +++ b/doc/html/namespaceutil.html @@ -0,0 +1,154 @@ + + + + + + +The Red Project: util Namespace Reference + + + + + + + + + + + + + +
+
+ + + + + + + +
+
The Red Project +
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
util Namespace Reference
+
+
+

Detailed Description

+

When I installed docblox, I had the experience that it does not generate any output at all. This script may be used to find that kind of problems with the documentation build process. If docblox generates output, use another approach for debugging.

+

Basically, docblox takes a list of files to build documentation from. This script assumes there is a file or set of files breaking the build when it is included in that list. It tries to calculate the smallest list containing these files. Unfortunatly, the original problem is NP-complete, so what the script does is a best guess only.

+

So it starts with a list of all files in the project. If that list can't be build, it cuts it in two parts and tries both parts independently. If only one of them breaks, it takes that one and tries the same independently. If both break, it assumes this is the smallest set. This assumption is not necessarily true. Maybe the smallest set consists of two files and both of them were in different parts when the list was divided, but by now it is my best guess. To make this assumption better, the list is shuffled after every step.

+

After that, the script tries to remove a file from the list. It tests if the list breaks and if so, it assumes that the file it removed belongs to the set of errorneous files. This is done for all files, so, in the end removing one file leads to a working doc build.

+
Author
Alexander Kampmann
+

This function generates a comma seperated list of file names.

+
Parameters
+ + +
array$filesetSet of file names
+
+
+
Returns
string comma-seperated list of the file names
+

This functions runs phpdoc on the provided list of files

+
Parameters
+ + +
array$filesetSet of filenames
+
+
+
Returns
bool true, if that set can be built
+

This functions cuts down a fileset by removing files until it finally works. it was meant to be recursive, but php's maximum stack size is to small. So it just simulates recursion.

+

In that version, it does not necessarily generate the smallest set, because it may not alter the elements order enough.

+
Parameters
+ + + +
array$filesetset of filenames
int$psnumber of files in subsets
+
+
+
Returns
array a part of $fileset, that crashes
+
+
+ + + + -- cgit v1.2.3