QueueUI.php 543 B

12345678910111213141516171819202122232425
  1. <?php
  2. class QueueUI {
  3. /**
  4. * Return the QueueUI class object for working with.
  5. *
  6. * @param $class
  7. * The queue class name to work with.
  8. *
  9. * @return mixte
  10. * The queue object for a given name, or FALSE if the QueueUI class does not exist for
  11. * the specified queue class.
  12. */
  13. public static function get($class) {
  14. if (class_exists($class)) {
  15. $object = new $class();
  16. return $object;
  17. }
  18. // If class does not exist then QueueUI has not been implemented for this class.
  19. return FALSE;
  20. }
  21. }