From d709751a3f5cf3fdf5b4036ef1486b14df6a646d Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 10 Jan 2008 09:14:18 +0000 Subject: fixed registration, show edit song title issue and added limit to xml api --- lib/class/xmldata.class.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'lib/class') 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'; /** @@ -52,6 +52,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 -- cgit