Skip to content
Paul Moeller edited this page Oct 28, 2014 · 10 revisions

UI.Facade

  • Collect all strings used in the UI into a single file

  • Useful for co-branding or internationalization

  • Map URIs to and from Tasks

  • Task

  • Text: strings for user interface

  • Constant: often per-facade configuration

    • ThreePartPage_want_ForumDropDown

    • ThreePartPage_want_dock_left_standard

  • Color

  • Font

  • FormError: customize error messages

  • HTML

Extreme Sharing

  • we want as much default behavior handled in the framework

  • we want the application to be able to override anything in the framework

  • UI.Text->get_value('some.really.very.specific.key', $req)

    • looks for values in the facade repeatedly, starting with most specific

    • pops off the left-most word and looks again

  • Keys used in a framework UI/View are fairly specific

  • Keys in UI.FacadeBase are fairly general

  • Application facades override defaults with more specific keys

Once and only once payed off

  • Added per-realm customization for Facade keys

  • get_value() looks first for realm_owner_<auth_realm>.some.realy.very.specific.key

  • we use different labels in site-admin realm

  • UI.FacadeBase

Clone this wiki locally