Edit via SFTP
  1. <?php
  2. /*
  3.  FOLDER DOC: https://htyp.org/Ferreteria/v0.4/file/menu/items
  4. */
  5. trait ftRequiresPermit {
  6.  
  7. // ++ EVENTS ++ //
  8.  
  9. protected function OnRunCalculations() : void {
  10. parent::OnRunCalculations();
  11. $this->SetIsAuthorized($this->FigureIfAuthorized());
  12. }
  13.  
  14. // -- EVENTS -- //
  15. // ++ INTERNALS ++ //
  16.  
  17. private $isAuth = FALSE;
  18. protected function SetIsAuthorized(bool $b) { $this->isAuth = $b; }
  19. protected function GetIsAuthorized() : bool { return $this->isAuth; }
  20.  
  21. // -- INTERNALS -- //
  22. }
  23. /*
  24. trait ftLinkKey {
  25.   protected function SetKeyValue(string $s) { $this->SetArg('kval',$s); }
  26.   protected function GetKeyValue() : string { return $this->GetArg('kval'); }
  27.   // 2019-06-23 NOTE: 'name' is used for something else
  28.   protected function SetKeyName(string $s) { $this->SetArg('kname',$s); }
  29.   protected function GetKeyName() : string { return $this->GetArg('kname'); }
  30.   protected function KeyNameStatus() : \ferret\cElementResult { return $this->ArgStatus('kname'); }
  31. }
  32. */
  33.