예제 #1
0
 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;
 }
예제 #2
0
파일: factory.php 프로젝트: Tommar/vino2
 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;
 }