Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:handler:adminactionregistry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:handler:adminactionregistry [2026/09/26 09:09] – admin adminscriptlog:lib:handler:adminactionregistry [2026/09/26 09:34] (current) – admin admin
Line 22: Line 22:
 //None.// //None.//
  
-======= Properties (0) =======+======= Properties (1) =======
  
-//None declared.//+^ Visibility ^ Type ^ Name ^ Default ^ Line ^ 
 +| ''private'' | ''array'' | ''$commands'' | ''[]'' | 23 |
  
 ======= Methods (3) ======= ======= Methods (3) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public | ''register()'' | Register a command for the given action. | 32 | +| public | ''register()'' | Register a command for the given action. | 32 | 
-  | public | ''has()'' | Check whether a command is registered for the given action. | 43 | +| public | ''has()'' | Check whether a command is registered for the given action. | 43 | 
-  | public | ''execute()'' | Execute the command registered for the given action. | 56 |+| public | ''execute()'' | Execute the command registered for the given action. | 56 |
  
  
Line 44: Line 45:
 Register a command for the given action. Register a command for the given action.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$action'' | ''string'' | //required// | The action constant (e.g. ActionConst::EDITCOMMENT). | +|  ''$action'' |  ''string'' |  //required// |  The action constant (e.g. ActionConst::EDITCOMMENT). | 
-  | ''$command'' | [[scriptlog:lib:handler:adminactioncommand|''AdminActionCommand'']] | //required// | The command implementation. |+|  ''$command'' |  [[scriptlog:lib:handler:adminactioncommand|''AdminActionCommand'']] |  //required// |  The command implementation. |
  
 **Returns:** ''void'' — void **Returns:** ''void'' — void
Line 61: Line 62:
 Check whether a command is registered for the given action. Check whether a command is registered for the given action.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$action'' | ''string'' | //required// | The action constant. |+|  ''$action'' |  ''string'' |  //required// |  The action constant. |
  
 **Returns:** ''bool'' — bool **Returns:** ''bool'' — bool
Line 77: Line 78:
 Execute the command registered for the given action. Execute the command registered for the given action.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$action'' | ''string'' | //required// | The action constant. | +|  ''$action'' |  ''string'' |  //required// |  The action constant. | 
-  | ''$context'' | ''array'' | //required// | Execution context (app, id, daos, controllers). |+|  ''$context'' |  ''array'' |  //required// |  Execution context (app, id, daos, controllers). |
  
 **Returns:** ''void'' — void **Returns:** ''void'' — void
Line 87: Line 88:
 ======= Imports ======= ======= Imports =======
  
-  ^ Alias ^ Fully-qualified name ^ +^ Alias ^ Fully-qualified name ^ 
-  | ''ActionConst'' | [[scriptlog:lib:core:actionconst|''Scriptlog\Core\ActionConst'']] |+| ''ActionConst'' | [[scriptlog:lib:core:actionconst|''Scriptlog\Core\ActionConst'']] |
  
  
scriptlog/lib/handler/adminactionregistry.1790413761.txt.gz · Last modified: by admin