Ferreteria/v0.5/@cls/cNav/choicematches

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls‎ | cNav
Revision as of 00:39, 15 June 2022 by Woozle (talk | contribs) (moving documentation here from code)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
menu\cNav::ChoiceMatches(cLocal $oi)
  • file: menu/nav.php
  • RULES: Every request-target must have a unique key by which it identifies the URL-part targeting it. This key is called the "choice key".
  • INPUT: $oi is the Collection representing the request data.

Scenarios

1.

  • REQUEST is page:wfproj
  • TARGET DROPIN ITEM has
    • name: wfproj
    • choice key: page

2.

  • REQUEST is page:wfproj/id:12/do:edit
  • TARGET DROPIN ITEM has
    • name: wfproj
    • choice key: page
  • TARGET MENU ITEM has
    • choice key: do
    • choice val: edit