コード例 #1
0
 /**
  * helper function for any files that do not inherit jigoshop_base, they can access jigoshop_options
  * @return Jigoshop_Options_Interface the options that have been set, or null if they haven't been set yet
  */
 public static function get_options()
 {
     // default options to Jigoshop_Options if they haven't been set
     if (self::$jigoshop_options == null) {
         self::$jigoshop_options = new Jigoshop_Options();
     }
     return self::$jigoshop_options;
 }