Recommend this page to a friend! |
Classes of Kjell-Inge Gustafsson | Gectrl PHP Generic Controller Class | docs/ActionClassInterface.md | Download |
|
Download [comment]: # (This file is part of Gectrl, PHP Genereric controller. Copyright 2021 Kjell-Inge Gustafsson, kigkonsult, All rights reserved, licence LGPLv3) Interface ActionClassInterfacePrescribe [Gectrl] strategy (application logic) actionClasses contract,<br> applied as the ([Gectrl]) invoke of conditionevaluationand opt, logicdoAction* methods Classes implementing the interface may also * extend a baseClass * implement other interface(s) * use the singleton pattern * .... For example, please review test/AcSrc/ActionExampleTest.php. Interface methods
Method getExecOrder MUST return an unique execOrder (int) number,<br> class (_evaluate_ / _doAction_ methods) will be invoked in order.<br> Use a greater int interval sequence.
For a low execOrder return number (first?) and the 'evaluate' method simply For a high execOrder return number (last?) and the 'evaluate' method simply ___ One or both of evaluate / doAction methods may be a factory method or not...
Go to [README], [Gectrl], [Package] docs. [Gectrl]:Gectrl.md [Package]:Package.md [README]:../README.md |