Warning: session_start(): open(/tmp/tsugi/sess_io6t4jt791mjm87etjtunf80m4, O_RDWR) failed: No such file or directory (2) in /data/tsugi/public_html/tsugi/vendor/tsugi/lib/src/Core/LTIX.php on line 1017 TSUGI - Tsugi Framework for Building Learning Tools

Writing Module, Class and Function Documentation

If you dont have phpdoc installed, you can download the phar version using this or similar. Put the file right in the top directory of tsugi.

curl -O http://www.phpdoc.org/phpDocumentor.phar

On ubuntu you should install:

apt-get install php5-cli
apt-get install graphviz

If you dont install these (i.e. linke on a Mac) you will see this error:

Unable to find the dot command of the GraphViz package. Is GraphViz correctly installed and present in your path?

Run phpdoc as follows

rm -r .tmp_phpdoc .out_phpdoc
php phpDocumentor.phar -c phpdoc.dist.xml
rm -r .tmp_phpdoc

And your documentation will be in .out_phpdoc

The output and parse data have dots by default sothings like grep dont find them by mistake.

Warning: Unknown: open(/tmp/tsugi/sess_io6t4jt791mjm87etjtunf80m4, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/tsugi) in Unknown on line 0