Ferreteria/v0.5/@cls/cNav/choicematches: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls‎ | cNav
Jump to navigation Jump to search
(moving documentation here from code)
 
m (Woozle moved page Ferreteria/v0.5/@cls/menu/nav/choicematches to Ferreteria/v0.5/@cls/cNav/choicematches without leaving a redirect: current class-page naming schema)
 
(No difference)

Latest revision as of 01:12, 19 July 2022

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