Manager
Table of Contents
Constants
- DEAL = 'Deal'
- INVOICE = 'Invoice'
- MULTIPLY_EXECUTION = 2
- MULTIPLY_EXECUTION_NAME = 'multiple'
- SINGLE_EXECUTION = 1
- SINGLE_EXECUTION_NAME = 'single'
Methods
- activate() : Result
- Activate recurring entity
- cancel() : Result
- checkAgent() : string
- Control of exposing agent.
- createEntity() : Result
- Create a new recurring entity.
- createInvoice() : Result
- Create recurring invoice
- deactivate() : Result
- Deactivate recurring entity
- expose() : Result
- Creating new entities by recurring template entities. Filter is used for filtering from {EntityType}RecurTable
- exposeAgent() : string
- Create new entities in agent. By default limit of exposing is 10 entities by hit.
- exposeInvoices() : Result
- Create new invoices from recurring invoices. Invoices's selection is from InvoiceRecurTable.
- exposeToday() : Result
- exposeTodayInvoices() : Result
- getList() : Result
- initCheckAgent() : string
- Start controlling agent.
- isActiveExecutionDate() : bool
- Check date of next invoicing by params.
- isAllowedExpose() : bool
- Check an ability of new entities creation.
- update() : Result
- Update a recurring entity.
- updateRecurring() : Result
- Update recurring invoice
Constants
DEAL
public
mixed
DEAL
= 'Deal'
INVOICE
public
mixed
INVOICE
= 'Invoice'
MULTIPLY_EXECUTION
public
mixed
MULTIPLY_EXECUTION
= 2
MULTIPLY_EXECUTION_NAME
public
mixed
MULTIPLY_EXECUTION_NAME
= 'multiple'
SINGLE_EXECUTION
public
mixed
SINGLE_EXECUTION
= 1
SINGLE_EXECUTION_NAME
public
mixed
SINGLE_EXECUTION_NAME
= 'single'
Methods
activate()
Activate recurring entity
public
static activate(mixed $entityId[, mixed $typeEntity = self::INVOICE ]) : Result
Parameters
- $entityId : mixed
- $typeEntity : mixed = self::INVOICE
-
. Entity type from class constants. Default is INVOICE for compatibility.
Tags
Return values
Resultcancel()
public
static cancel(mixed $entityId[, string $reason = "" ][, mixed $typeEntity = self::INVOICE ]) : Result
Parameters
- $entityId : mixed
- $reason : string = ""
- $typeEntity : mixed = self::INVOICE
-
. Entity type. Default is INVOICE for compatibility.
Tags
Return values
ResultcheckAgent()
Control of exposing agent.
public
static checkAgent() : string
Return values
stringcreateEntity()
Create a new recurring entity.
public
static createEntity(mixed $entityFields, mixed $recurringParams[, mixed $typeEntity = self::INVOICE ]) : Result
Parameters
- $entityFields : mixed
- $recurringParams : mixed
- $typeEntity : mixed = self::INVOICE
Return values
ResultcreateInvoice()
Create recurring invoice
public
static createInvoice(array<string|int, mixed> $invoiceFields, array<string|int, mixed> $recurParams) : Result
Parameters
- $invoiceFields : array<string|int, mixed>
- $recurParams : array<string|int, mixed>
Tags
Return values
Resultdeactivate()
Deactivate recurring entity
public
static deactivate(mixed $entityId[, mixed $typeEntity = self::INVOICE ]) : Result
Parameters
- $entityId : mixed
- $typeEntity : mixed = self::INVOICE
-
. Entity type from class constants. Default is INVOICE for compatibility
Tags
Return values
Resultexpose()
Creating new entities by recurring template entities. Filter is used for filtering from {EntityType}RecurTable
public
static expose([mixed $filter = array() ][, mixed $limit = null ][, mixed $typeEntity = self::INVOICE ]) : Result
Parameters
- $filter : mixed = array()
- $limit : mixed = null
- $typeEntity : mixed = self::INVOICE
Return values
ResultexposeAgent()
Create new entities in agent. By default limit of exposing is 10 entities by hit.
public
static exposeAgent([mixed $typeEntity = self::INVOICE ]) : string
Parameters
- $typeEntity : mixed = self::INVOICE
-
. Entity type from class constants. Default is INVOICE for compatibility.
Return values
stringexposeInvoices()
Create new invoices from recurring invoices. Invoices's selection is from InvoiceRecurTable.
public
static exposeInvoices(mixed $filter[, mixed $limit = null ]) : Result
Parameters
- $filter : mixed
- $limit : mixed = null
Tags
Return values
ResultexposeToday()
public
static exposeToday([mixed $limit = null ][, mixed $typeEntity = self::INVOICE ]) : Result
Parameters
- $limit : mixed = null
- $typeEntity : mixed = self::INVOICE
-
. Entity type from class constants. Default is INVOICE for compatibility.
Return values
ResultexposeTodayInvoices()
public
static exposeTodayInvoices([mixed $limit = null ]) : Result
Parameters
- $limit : mixed = null
Return values
ResultgetList()
public
static getList([mixed $params = array() ][, mixed $typeEntity = self::INVOICE ]) : Result
Parameters
- $params : mixed = array()
- $typeEntity : mixed = self::INVOICE
-
. Entity type. Default is INVOICE for compatibility.
Return values
ResultinitCheckAgent()
Start controlling agent.
public
static initCheckAgent([mixed $typeEntity = self::INVOICE ]) : string
Parameters
- $typeEntity : mixed = self::INVOICE
Return values
stringisActiveExecutionDate()
Check date of next invoicing by params.
public
static isActiveExecutionDate(mixed $params) : bool
Parameters
- $params : mixed
Return values
boolisAllowedExpose()
Check an ability of new entities creation.
public
static isAllowedExpose(mixed $typeEntity) : bool
Parameters
- $typeEntity : mixed
Return values
boolupdate()
Update a recurring entity.
public
static update(mixed $primary, mixed $data[, mixed $typeEntity = self::INVOICE ]) : Result
Parameters
- $primary : mixed
- $data : mixed
- $typeEntity : mixed = self::INVOICE
Return values
ResultupdateRecurring()
Update recurring invoice
public
static updateRecurring(int $primary, array<string|int, mixed> $data) : Result
Parameters
- $primary : int
- $data : array<string|int, mixed>