From 24d18c5313b75e3020df3fcefc39c619163bc1a6 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 16 Aug 2015 15:55:31 +0200 Subject: [PATCH] cleaned up phpdoc comments, added README on how to install and use it --- .gitignore | 11 +- doc/README.md | 19 ++++ lib/RainTPL.php | 217 ++++++++++++++++++++++++++++++--------- lib/filter.php | 2 + lib/persistence.php | 2 + lib/serversalt.php | 2 + lib/trafficlimiter.php | 2 + lib/vizhash16x16.php | 109 +++++++++++++++++--- lib/zerobin.php | 21 +++- lib/zerobin/abstract.php | 3 +- lib/zerobin/data.php | 7 +- lib/zerobin/db.php | 27 +++-- 12 files changed, 336 insertions(+), 86 deletions(-) create mode 100644 doc/README.md diff --git a/.gitignore b/.gitignore index 02ed2e22..38fe785e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,12 @@ # Ignore data/ and tmp/ data/ tmp/ -# Ignore unit testing logs and eclipse project files -tst/log/ -.settings/ -.buildpath -.project # Ignore for safety .htaccess .htpasswd +# Ignore unit testing logs, api docs and eclipse project files +tst/log/ +doc/ +.settings/ +.buildpath +.project diff --git a/doc/README.md b/doc/README.md new file mode 100644 index 00000000..a3baf68d --- /dev/null +++ b/doc/README.md @@ -0,0 +1,19 @@ +Generating documentation +======================== + +In order to generate the documentation, you will need to install the following +packages and its dependencies: +* phpdoc +* graphviz + +Details about [installing phpDocumentor](http://phpdoc.org/docs/latest/getting-started/installing.html) +can be found in its own documentation. + +Example for Debian and Ubuntu: + $ sudo aptitude install pear graphviz + $ sudo pear channel-discover pear.phpdoc.org + $ sudo pear install phpdoc/phpDocumentor + +To generate the documentation, change into the main directory and run phpdoc: + $ cd ZeroBin + $ phpdoc -d lib/ -t doc/ diff --git a/lib/RainTPL.php b/lib/RainTPL.php index 817e6450..b77b3eec 100644 --- a/lib/RainTPL.php +++ b/lib/RainTPL.php @@ -1,15 +1,17 @@ ), stylesheet (), script (