diff options
Diffstat (limited to 'lib/class')
-rw-r--r-- | lib/class/xmldata.class.php | 13 |
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... |