Edit via SFTP
<?php
/*
 FOLDER DOC: https://htyp.org/Ferreteria/v0.4/file/menu/items
*/
trait ftRequiresPermit {
 
    // ++ EVENTS ++ //
 
    protected function OnRunCalculations() : void {
        parent::OnRunCalculations();
        $this->SetIsAuthorized($this->FigureIfAuthorized());    }
 
    // -- EVENTS -- //
    // ++ INTERNALS ++ //
 
    private $isAuth = FALSE;
    protected function SetIsAuthorized(bool $b) { $this->isAuth = $b; }
    protected function GetIsAuthorized() : bool { return $this->isAuth; }
 
    // -- INTERNALS -- //
}
/*
trait ftLinkKey {
    protected function SetKeyValue(string $s) { $this->SetArg('kval',$s); }
    protected function GetKeyValue() : string { return $this->GetArg('kval'); }
    // 2019-06-23 NOTE: 'name' is used for something else
    protected function SetKeyName(string $s) { $this->SetArg('kname',$s); }
    protected function GetKeyName() : string { return $this->GetArg('kname'); }
    protected function KeyNameStatus() : \ferret\cElementResult { return $this->ArgStatus('kname'); }
}
*/