From 78bf26a53cfbad6b93122106f122e9e28171dbae Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Mon, 18 Jul 2011 15:28:16 +0200 Subject: [PATCH] Pridana kostra phpdocumentor dokumentace --- Sklad_LMS-fake.class.php | 12 ++++++++++++ index.php | 24 +++++++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/Sklad_LMS-fake.class.php b/Sklad_LMS-fake.class.php index 3814ec2..cc84e12 100755 --- a/Sklad_LMS-fake.class.php +++ b/Sklad_LMS-fake.class.php @@ -17,6 +17,12 @@ * along with this program. If not, see . */ +/** +* Trida implementuje podpurne funkce spolecne pro vsechny implementace tridy Sklad_LMS +* +* @package Sklad_LMS_common +* @author Tomas Mudrunka +*/ class Sklad_LMS_common { function get_authorized_user_id($die=true) { if(isset($this->authorized_user_id)) return $this->authorized_user_id; @@ -25,6 +31,12 @@ class Sklad_LMS_common { } } +/** +* Trida predstira spojeni s LMS a podvrhuje smysluplna data pro testovaci ucely +* +* @package Sklad_LMS +* @author Tomas Mudrunka +*/ class Sklad_LMS extends Sklad_LMS_common { //FAKE! function check_auth($user, $pass) { $users = array( //You can specify multiple users in this array diff --git a/index.php b/index.php index 96bfce3..d1d0942 100755 --- a/index.php +++ b/index.php @@ -1,7 +1,7 @@ lms = new Sklad_LMS(); @@ -329,6 +341,16 @@ class Sklad_DB extends PDO { } } +/** +* Trida implementuje uzivatelske rozhrani skladu +* +* Example usage: +* $sklad = new Sklad_UI(); +* $sklad->process_http_request(); +* +* @package Sklad_UI +* @author Tomas Mudrunka +*/ class Sklad_UI { function __construct() { $this->db = new Sklad_DB(); -- 2.30.2