public static function getUserShopGuest() { static $userguest; if (!is_object($userguest)) { require_once JPATH_ROOT . "/components/com_jshopping/models/userguest.php"; $userguest = new jshopUserGust(); $userguest->load(); $userguest->percent_discount = 0; JDispatcher::getInstance()->trigger('onAfterGetUserShopGuestJSFactory', array(&$userguest)); } return $userguest; }
public static function getUserShopGuest() { static $userguest; if (!is_object($userguest)) { require_once JPATH_ROOT . "/components/com_jshopping/models/userguest.php"; $userguest = new jshopUserGust(); $userguest->load(); $userguest->percent_discount = 0; } return $userguest; }