示例#1
0
 /**
  * @return null|Services_Widget_Transaction
  */
 public static function instance()
 {
     if (is_null(self::$self)) {
         self::$self = new self();
     }
     return self::$self;
 }
示例#2
0
 public function transaction($api)
 {
     switch ($api) {
         case Constants_WidgetConfigEnum::GET_CONFIG:
             $result = Services_Widget_Transaction::instance()->GetConfig();
             break;
     }
     return $result;
 }