summaryrefslogtreecommitdiffstats
path: root/lib/class/xmldata.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-01-10 09:14:18 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-01-10 09:14:18 +0000
commitd709751a3f5cf3fdf5b4036ef1486b14df6a646d (patch)
tree1e9d80ddc0f9d23c2e13181cb4fc6ed11d1afedb /lib/class/xmldata.class.php
parente0c75b5684693605d38c437b0d3857a87127ff04 (diff)
downloadampache-d709751a3f5cf3fdf5b4036ef1486b14df6a646d.tar.gz
ampache-d709751a3f5cf3fdf5b4036ef1486b14df6a646d.tar.bz2
ampache-d709751a3f5cf3fdf5b4036ef1486b14df6a646d.zip
fixed registration, show edit song title issue and added limit to xml api
Diffstat (limited to 'lib/class/xmldata.class.php')
-rw-r--r--lib/class/xmldata.class.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php
index 6d5baa26..491d4074 100644
--- a/lib/class/xmldata.class.php
+++ b/lib/class/xmldata.class.php
@@ -28,7 +28,7 @@
class xmlData {
// This is added so that we don't pop any webservers
- public static $limit = '5000';
+ private static $limit = '5000';
private static $offset = '0';
/**
@@ -53,6 +53,17 @@ class xmlData {
} // set_offset
/**
+ * set_limit
+ * This sets the limit for any ampache transactions
+ */
+ public static function set_limit($limit) {
+
+ $limit = intval($limit);
+ self::$limit = $limit;
+
+ } // set_limit
+
+ /**
* error
* This generates a standard XML Error message
* nothing fancy here...