Documentation

Process
in package

Process class.

Table of Contents

$processName  : string
Request process name.
$processType  : string
Request process type.
$requestMode  : string
Request mode.
$rootDirectory  : string
CRM root directory.
$startTime  : int
Request start time.
$events  : array<string|int, mixed>
List of events.
addEvent()  : void
Add event.
getEvents()  : array<string|int, mixed>
Get events.
hasEvent()  : bool
Has event.
init()  : void
Initialization of events.
removeEvent()  : void
Remove event.
writeSession()  : void
Write session data.

Properties

$processName

Request process name.

public static string $processName

$processType

Request process type.

public static string $processType

$requestMode

Request mode.

public static string $requestMode

$rootDirectory

CRM root directory.

public static string $rootDirectory

$startTime

Request start time.

public static int $startTime

$events

List of events.

private static array<string|int, mixed> $events = []

Methods

addEvent()

Add event.

public static addEvent(array<string|int, mixed> $event) : void

App\Process::addEvent([ 'name' => 'notify test', 'execution' => 'once', 'type' => 'notify', 'notify' => [ 'text' => 'test', 'type' => 'info' // alert, notice, info, success, error ] ]); alert, notice, info, success, error

Parameters
$event : array<string|int, mixed>
Return values
void

getEvents()

Get events.

public static getEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>

hasEvent()

Has event.

public static hasEvent(string $name) : bool
Parameters
$name : string
Return values
bool

init()

Initialization of events.

public static init() : void
Return values
void

removeEvent()

Remove event.

public static removeEvent(string $name) : void
Parameters
$name : string
Return values
void

writeSession()

Write session data.

private static writeSession() : void
Return values
void

        

Search results