Ferreteria/v0.5/registry/feature: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
No edit summary
m (3 revisions imported: moving this project here)
(No difference)

Revision as of 16:45, 22 May 2022

Feature registration

Feature registration for non-Dropin classes from config/portable/features.php:

class csSetup {
    static public function OnSetup() {
        $oReg = FD\caFeature::FeatureClassRegistry();
        
          $oReg->AddFeature(FU\account\cFeature::class);
          $oReg->AddFeature(FU\client\cFeature::class);
          $oReg->AddFeature(FU\perm\cFeature::class);
          $oReg->AddFeature(FU\session\cFeature::class);
          
          $oReg->AddFeature(FDN\cFeature::class);
    }
}

For an example of how to read the Feature Registry, see cDropinLink::InvokeFeature().