/** * 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; }
/** * Helper to access the Shopp-ing session instance * * @api * @since 1.2 * * @return Shopping **/ function ShoppShopping() { return Shopping::object(); }