BaseApp
abstract class BaseApp implements Transactions
The base class from which apps must inherit
Properties
| protected | $API | Reference to the main API, for convenience |
|
| static private | $metadata |
Methods
Returns an array of strings showing the CLI usage of the app
No description
Return this app's BaseAppLog class name, if used (or null)
Loads a metadata for the given app with the given key
No description
No description
No description
Tells the app to commit any changes made outside the database
Tells the app to rollback any changes made outside the database
Details
at line 28
__construct(Main $API)
All apps are constructed when Andromeda runs
at line 38
abstract mixed
Run(Input $input)
The main entry point into the app
at line 44
abstract static array
getUsage()
Returns an array of strings showing the CLI usage of the app
at line 47
abstract static string
getName()
No description
at line 50
static protected string|null
getLogClass()
Return this app's BaseAppLog class name, if used (or null)
at line 59
static protected
getMetadata(string $app, string $key)
Loads a metadata for the given app with the given key
Loads the app's JSON metadata file but not its code
at line 77
static array
getAppRequires(string $app)
No description
at line 83
static string
getAppApiVersion(string $app)
No description
at line 89
static string
getVersion()
No description
at line 95
commit()
Tells the app to commit any changes made outside the database
at line 98
rollback()
Tells the app to rollback any changes made outside the database