summaryrefslogtreecommitdiff
path: root/htdocs/src
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-06-09 15:01:53 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-06-09 15:01:53 -0700
commit0b1deccfe6cbe7fca0a6abd03abb18cafca59c60 (patch)
tree826cba7d21edab13d3e75648f78a3b28f13a85c7 /htdocs/src
parent3ffd7a349728e4aff80a982bb16c5196e55795e3 (diff)
Added category options and descriptions.
Diffstat (limited to 'htdocs/src')
-rw-r--r--htdocs/src/Category.inc.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/htdocs/src/Category.inc.php b/htdocs/src/Category.inc.php
index edc0303..fdcd210 100644
--- a/htdocs/src/Category.inc.php
+++ b/htdocs/src/Category.inc.php
@@ -27,7 +27,8 @@ class Category {
$result = array();
foreach ($rows as $row) {
- $result[$row['shortname']] = $row['name'];
+ $cat = new Category($row);
+ $result[$row['shortname']] = $cat;
}
return $result;
@@ -80,6 +81,10 @@ class Category {
public function getShortname() {
return htmlspecialchars($this->info['shortname']);
}
+
+ public function getDescription() {
+ return htmlspecialchars($this->info['description']);
+ }
}
?>