SilverShop\ShopTools
Globally useful tools
Synopsis
class ShopTools
{
- // methods
- public static DBMoney price_for_display()
- public static string get_current_locale()
- public static void install_locale()
- public static Session getSession()
- public static string sanitiseClassName()
- public static string unsanitiseClassName()
Methods
public
- getSession() — Get the current section (first looking at controller, then at a request instance and lastly return a fresh session)
- get_current_locale() — Get the current locale.
- install_locale() — Set/Install the given locale.
- price_for_display() — Convert a numeric price to the shop currency
- sanitiseClassName() — Sanitise a model class' name for inclusion in a link
- unsanitiseClassName() — Unsanitise a model class' name from a URL param