summaryrefslogtreecommitdiff
path: root/UrlGenerator.class.php
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-03-18 11:52:54 +0000
committerTrygve Laugstøl <trygvis@inamo.no>2012-03-18 11:52:54 +0000
commite0a5561fda74908f19166844da6e08a6c02ff0e1 (patch)
tree169a7b551a6c4368ed7bfbfd39c080b8fb3121ed /UrlGenerator.class.php
parent3abcaeebf6b533c35aafbbd86a1a44246e99a572 (diff)
downloadhttp-mq-e0a5561fda74908f19166844da6e08a6c02ff0e1.tar.gz
http-mq-e0a5561fda74908f19166844da6e08a6c02ff0e1.tar.bz2
http-mq-e0a5561fda74908f19166844da6e08a6c02ff0e1.tar.xz
http-mq-e0a5561fda74908f19166844da6e08a6c02ff0e1.zip
o Adding html templates.
Diffstat (limited to 'UrlGenerator.class.php')
-rw-r--r--UrlGenerator.class.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/UrlGenerator.class.php b/UrlGenerator.class.php
index 03c5b14..24aa75e 100644
--- a/UrlGenerator.class.php
+++ b/UrlGenerator.class.php
@@ -6,16 +6,24 @@ class UrlGenerator {
$this->baseurl = $baseurl;
}
+ function queues() {
+ return $this->baseurl . "/queue";
+ }
+
function queue($queue) {
return $this->baseurl . "/queue/" . $queue;
}
+ function queue_items($queue) {
+ return $this->baseurl . "/queue/" . $queue . "/items";
+ }
+
function enqueue($queue) {
return $this->baseurl . "/enqueue/" . $queue;
}
function item($queue, $item) {
- return $this->baseurl . "/item/" . $queue . "/" . $id;
+ return $this->baseurl . "/queue/" . $queue . "/items/" . $item;
}
function item_enclosure($queue, $id) {