示例#1
0
/**
 * Helper to access the error system
 *
 * @api
 * @since 1.0
 *
 * @return ShoppErrors
 **/
function ShoppErrors()
{
    return ShoppErrors::object();
}
示例#2
0
 public static function object()
 {
     if (!self::$object instanceof self) {
         self::$object = new self();
         do_action('shopp_errors_init');
         add_action('init', array(self::$object, 'init'));
     }
     return self::$object;
 }