/** * Helper to access the error system * * @api * @since 1.0 * * @return ShoppErrors **/ function ShoppErrors() { return ShoppErrors::object(); }
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; }