You are here

class QueueUI in Queue UI 7.2

Hierarchy

Expanded class hierarchy of QueueUI

2 string references to 'QueueUI'
queue_ui_overview_form in ./queue_ui.pages.inc
_queue_ui_queueclass in ./queue_ui.module
Retrieve the QueueUI object for the class a particular queue is implemented as.

File

lib/QueueUI.php, line 4

View source
class QueueUI {

  /**
   * Return the QueueUI class object for working with.
   *
   * @param $class
   *  The queue class name to work with.
   *
   * @return mixed
   *  The queue object for a given name, or FALSE if the QueueUI class does not exist for
   *  the specified queue class.
   */
  public static function get($class) {
    if (class_exists($class)) {
      $object = new $class();
      return $object;
    }

    // If class does not exist then QueueUI has not been implemented for this class.
    return FALSE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
QueueUI::get public static function Return the QueueUI class object for working with.