RootController
extends LedgerAccountController
in package
Uses
Audited
Functions associated with creating and querying the Ledger root account.
Table of Contents
- add() : LedgerAccount
- Adding an account to the ledger.
- checkNoLedgerExists() : mixed
- Verify that the Ledger has not been created already.
- create() : LedgerAccount
- Initialize a new Ledger.
- delete() : null
- Delete a ledger account (and all sub-accounts). The accounts must be unused.
- get() : LedgerAccount
- Get a single account
- listTemplates() : array<string|int, mixed>
- Get a list of the names and title of the predefined templates.
- query() : Collection
- Return accounts matching a Query.
- run() : LedgerAccount|null
- Perform an account operation.
- update() : LedgerAccount
- Update an account.
Methods
add()
Adding an account to the ledger.
public
add(Account $message) : LedgerAccount
Parameters
- $message : Account
Tags
Return values
LedgerAccount —checkNoLedgerExists()
Verify that the Ledger has not been created already.
public
static checkNoLedgerExists() : mixed
Tags
Return values
mixed —create()
Initialize a new Ledger.
public
create(Create $message) : LedgerAccount
Parameters
- $message : Create
Tags
Return values
LedgerAccount —delete()
Delete a ledger account (and all sub-accounts). The accounts must be unused.
public
delete(Account $message) : null
Parameters
- $message : Account
Tags
Return values
null —get()
Get a single account
public
get(Account $message) : LedgerAccount
Parameters
- $message : Account
Tags
Return values
LedgerAccount —listTemplates()
Get a list of the names and title of the predefined templates.
public
static listTemplates() : array<string|int, mixed>
Return values
array<string|int, mixed> —query()
Return accounts matching a Query.
public
query(AccountQuery $message, int $opFlags) : Collection
Parameters
- $message : AccountQuery
- $opFlags : int
Tags
Return values
Collection —run()
Perform an account operation.
public
run(Account $message[, int|null $opFlags = null ]) : LedgerAccount|null
Parameters
- $message : Account
-
Account details.
- $opFlags : int|null = null
-
The requested operation. See the Message constants.
Tags
Return values
LedgerAccount|null —The related account, if any.
update()
Update an account.
public
update(Account $message) : LedgerAccount
Parameters
- $message : Account
-
The update request details.
Tags
Return values
LedgerAccount —The updated account with new values.