From e7e7ea4467452f6e08cf79ca0a8e6b9e216407c6 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 16 Aug 2010 15:48:17 -0300 Subject: Comments --- classes/helpers/CinisisDisplayHelper.php | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'classes/helpers/CinisisDisplayHelper.php') diff --git a/classes/helpers/CinisisDisplayHelper.php b/classes/helpers/CinisisDisplayHelper.php index 16d458e..cf095ac 100644 --- a/classes/helpers/CinisisDisplayHelper.php +++ b/classes/helpers/CinisisDisplayHelper.php @@ -1,15 +1,33 @@ header(); $this->title($title); } + /** + * Draws a page title. + * + * @param $title + * Page title; + */ function title($title) { echo "

$title

\n"; } + /** + * Draws the page header. + */ function header() { echo ''; echo ''; @@ -19,10 +37,25 @@ class CinisisDisplayHelper { echo ''; } + /** + * Draws the page footer. + */ function footer() { echo ''; } + /** + * Draws a form. + * + * @param $content + * Form inner content. + * + * @param $action + * Form action. + * + * @param $method + * Form method. + */ function form($content, $action = 'index.php', $method = 'get') { echo '
'; echo $content; @@ -31,10 +64,31 @@ class CinisisDisplayHelper { echo '
'; } + /** + * Draws a form text input. + * + * @param $name + * Input name. + * + * @return + * Rendered text input. + */ function form_input_text($name) { return ucfirst($name) .': '; } + /** + * Draws a navigation bar. + * + * @param $entry + * Current entry. + * + * @param $entries + * Total number of entries. + * + * @param $action + * Page action. + */ function navbar($entry, $entries, $action = 'index.php') { // First / prev links. if ($entry != 1) { -- cgit v1.2.3