diff --git a/modules/counter/counter.admin.view.php b/modules/counter/counter.admin.view.php index 5e3565892..11cbaf0cc 100644 --- a/modules/counter/counter.admin.view.php +++ b/modules/counter/counter.admin.view.php @@ -1,14 +1,16 @@ regdate = date("YmdHis"); @@ -62,7 +71,10 @@ } /** - * @brief Register the unique visitor + * Register the unique visitor + * + * @param integer $site_srl + * @return void **/ function insertUniqueVisitor($site_srl=0) { if($site_srl) { @@ -80,7 +92,10 @@ } /** - * @brief Register pageview + * Register pageview + * + * @param integer $site_srl + * @return void **/ function insertPageView($site_srl=0) { if($site_srl) { @@ -98,7 +113,10 @@ } /** - * @brief Add the total counter status + * Add the total counter status + * + * @param integer $site_srl + * @return void **/ function insertTotalStatus($site_srl=0) { $args->regdate = 0; @@ -111,7 +129,11 @@ } /** - * @brief Add today's counter status + * Add today's counter status + * + * @param integer $regdate date(YYYYMMDD) type + * @param integer $site_srl + * @return void **/ function insertTodayStatus($regdate = 0, $site_srl=0) { if($regdate) $args->regdate = $regdate; @@ -134,7 +156,10 @@ } /** - * @brief Delete counter logs of the specific virtual site + * Delete counter logs of the specific virtual site + * + * @param integer $site_srl + * @return void **/ function deleteSiteCounterLogs($site_srl) { $args->site_srl = $site_srl; diff --git a/modules/counter/counter.model.php b/modules/counter/counter.model.php index 9b26f33fe..5cd8d5c6e 100644 --- a/modules/counter/counter.model.php +++ b/modules/counter/counter.model.php @@ -1,20 +1,25 @@ regdate = date("Ymd"); @@ -25,7 +30,10 @@ } /** - * @brief Check if a row of today's counter status exists + * Check if a row of today's counter status exists + * + * @param integer $site_srl Site_srl + * @return bool **/ function isInsertedTodayStatus($site_srl=0) { $args->regdate = date("Ymd"); @@ -39,16 +47,20 @@ } /** - * @brief Get access statistics for a given date + * Get access statistics for a given date + * + * @param mixed $selected_date Date(YYYYMMDD) list + * @param integer $site_srl Site_srl + * @return Object **/ - function getStatus($selected_date, $site_srl=0) { + function getStatus($selected_date, $site_srl = 0) { // If more than one date logs are selected if(is_array($selected_date)) { $date_count = count($selected_date); $args->regdate = implode(',',$selected_date); // If a single date log is selected } else { - if(strlen($selected_date)==8) $selected_date = $selected_date; + if(strlen($selected_date) == 8) $selected_date = $selected_date; $args->regdate = $selected_date; } @@ -72,7 +84,12 @@ } /** - * @brief Select hourly logs of a given date + * Select hourly logs of a given date + * + * @param string $type Choice time interval (year, week, month, hour or DEFAULT) + * @param integer $selected_date Date(YYYYMMDD) + * @param integer $site_srl Site_srl + * @return Object **/ function getHourlyStatus($type='hour', $selected_date, $site_srl=0) { $max = 0;