From 6441053a55c17832f389f4907f047d9c028ace6f Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 12 May 2011 09:33:11 +0300 Subject: prettier comments and readme --- MainApp.php | 16 ++++++++++++---- MainController.php | 15 ++++++++++++--- MainDb.php | 17 +++++++++++++---- MainView.php | 16 ++++++++++++---- README.md | 43 ++++++++++++++++++++++--------------------- 5 files changed, 71 insertions(+), 36 deletions(-) diff --git a/MainApp.php b/MainApp.php index 0219a48..8ab3a94 100644 --- a/MainApp.php +++ b/MainApp.php @@ -1,8 +1,16 @@ -// @copyright (c) 2009 Filipp Lepalaan +/** + * main/MainApp.php + * @package main + * @author Filipp Lepalaan + * @copyright (c) 2009-2011 Filipp Lepalaan + * @license + * This program is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ class MainApp { //// diff --git a/MainController.php b/MainController.php index 49a60b5..381e1c1 100644 --- a/MainController.php +++ b/MainController.php @@ -1,7 +1,16 @@ + * @copyright (c) 2009-2011 Filipp Lepalaan + * @license + * This program is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ class MainController { public $view; // Where to store the data to be rendered diff --git a/MainDb.php b/MainDb.php index b8c16ce..589ce82 100644 --- a/MainDb.php +++ b/MainDb.php @@ -1,8 +1,17 @@ -// http://www.php.net/manual/en/language.oop5.patterns.php +/** + * main/MainDb.php + * @author Filipp Lepalaan + * @package main + * @author Filipp Lepalaan + * @copyright (c) 2009-2011 Filipp Lepalaan + * @license + * This program is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ class MainDb { private static $instance = NULL; diff --git a/MainView.php b/MainView.php index b5bce86..444dceb 100644 --- a/MainView.php +++ b/MainView.php @@ -1,8 +1,16 @@ +/** + * main/MainView.php + * @package main + * @author Filipp Lepalaan + * @copyright (c) 2009-2011 Filipp Lepalaan + * @license + * This program is free software. It comes without any warranty, to + * the extent permitted by applicable law. You can redistribute it + * and/or modify it under the terms of the Do What The Fuck You Want + * To Public License, Version 2, as published by Sam Hocevar. See + * http://sam.zoy.org/wtfpl/COPYING for more details. + */ class MainView { //// diff --git a/README.md b/README.md index 158ca0f..094084e 100644 --- a/README.md +++ b/README.md @@ -16,33 +16,34 @@ site: ## index.php ## A typical index.php using Main would look like this: - + ?> ## .htaccess ## -- cgit v1.2.3