Beispiel #1
0
 /**
  * The singleton access method
  *
  * @since 1.3
  *
  * @return Shopping The Shopping object instance
  **/
 public static function object()
 {
     if (!self::$object instanceof self) {
         self::$object = new self();
     }
     return self::$object;
 }
Beispiel #2
0
/**
 * Helper to access the Shopp-ing session instance
 *
 * @api
 * @since 1.2
 *
 * @return Shopping
 **/
function ShoppShopping()
{
    return Shopping::object();
}