Skip to content
moellep edited this page Nov 13, 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

Facade Value Lookup

  • Calling vs_text('some.really.very.specific.key') or 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

Implementation

Application facade classes derive from UI.FacadeBase which provides text and URL task routes for BOP's base features.

Clone this wiki locally