Ferreteria/v0.5/@cls/cDropinLink: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:


===events: render===
===events: render===
* {{l/ver/meth|layout|OnRender}}
* {{l/ver/meth|layout/event|OnRender}}
* {{l/ver/meth|layout|GetShouldDisplay}} returns GetIsAuthorized()
* {{l/ver/meth|layout/event|GetShouldDisplay}} returns GetIsAuthorized()
* RenderSelf() - this isn't a thing anymore; needs renaming/refactoring
* RenderSelf() - this isn't a thing anymore; needs renaming/refactoring
* {{l/ver/meth|layout/event|RenderOutput}} comes from {{l/ver/class|caNavElement}}
* {{l/ver/meth|layout/event|RenderDisplay}} comes from {{l/ver/class|caNavElement}}
* {{l/ver/meth|layout/event|RenderValue}} comes from {{l/ver/class|cElement}}
* {{l/ver/meth|layout/event|RenderBranch}} comes from {{l/ver/class|cElement}}
* {{l/ver/meth|layout/event|RenderTwigs}} comes from {{l/ver/class|cElement}}

Revision as of 01:02, 16 July 2022

Ferreteria class ferret\cDropinLink

caDynamicLink
tRequiresPermit

cDropinLink cDropinAction

About

Each DropinLink object connects to a Feature object. It uses the OnRunCalculations() method in tRequiresPermit to calculate whether or not the current user has permission to access that Feature, and sets SetIsAuthorized() accordingly. GetIsAuthorized() returns the value of that flag.

Methods

events: general

  • OnRunCalculations() comes from tRequiresPermit
  • OnEventLocal(): if GetIsSelected() and GetIsAuthorized(), then InvokeFeature()
    • ...and also $oe->SetDoTwigs(FALSE), which is no longer supported and will generate an error if this code is actually run.

events: render