You are here

public static function TMGMTJobItemUICart::getInstance in Translation Management Tool 7

Returns the singleton cart.

Return value

TMGMTJobItemUICart An instance of the cart.

1 call to TMGMTJobItemUICart::getInstance()
tmgmt_ui_cart_get in ui/tmgmt_ui.module
Gets the tmgmt cart singleton object.

File

ui/includes/tmgmt_ui.cart.inc, line 53
Contains TMGMTJobItemUICart.

Class

TMGMTJobItemUICart
Represents a job item cart.

Code

public static function getInstance() {
  if (!isset(self::$instance)) {
    self::$instance = new self();
  }
  return self::$instance;
}