From 0ca2d3bcff65101b8077a955bbd4805ca9670e14 Mon Sep 17 00:00:00 2001 From: Darko Date: Fri, 16 Aug 2013 12:44:51 +0200 Subject: [PATCH] added explanations --- test/functions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/functions.php b/test/functions.php index e451f2f29..53a269824 100755 --- a/test/functions.php +++ b/test/functions.php @@ -17,11 +17,12 @@ require_once(WWW_DIR."/lib/groups.php"); class Functions { + // database function public function fetchArray($result) { return (is_null($result) ? null : $result->fetch_array()); } - + // gets name of category from category.php public function getNameByID($ID) { $db = new DB(); @@ -31,7 +32,7 @@ class Functions $cat = array_shift($arr2); return $parent." ".$cat; } - + //deletes from releases public function fastDelete($id, $guid, $site) { $db = new DB(); @@ -61,7 +62,7 @@ class Functions $ri->delete($guid); // This deletes a file so not in the query } - + //reads name of group public function getByNameByID($id) { $db = new DB();