...
call, listFindCode, listFindValue, listGetByCode, query
Code Block |
---|
|
array $this->call(string $apiFunctionToCall, array $params, bool $commitOnSuccess); |
Code Block |
---|
|
array $this->query(string $sql, array $bind_parameters); |
Code Block |
---|
|
mixed $this->listGetByCode(string $list_type, mixed $list_code); |
Code Block |
---|
|
string $this->listFindValue(int $recid); |
Code Block |
---|
|
string $this->listFindCode(int $recid); |
PCR-360 Debug
debug, error_log
Code Block |
---|
|
$this->debug(mixed $debug); |
...
arrayToCsv, createFile, sendSystemMessage
Code Block |
---|
|
string $this->arrayToCsv(array $data, string $delimiter = ',', string $enclosure = '"') |
Code Block |
---|
|
int|false $this->createFile(string $filename, string|array $content, string $location = 'OUTBOUND', bool $overwrite = false); |
Code Block |
---|
|
bool $this->sendSystemMessage(string $subject, string $body, int $contactRecid, string $identifier); |
...
setError, setMessage, setWarning
Sets a validation error message. This messages output in the UI if the validation logic returns false. If this function is called multiple times, only the message from the last calls is displayed.
Code Block |
---|
|
$this->setError(string $message); |
Sets the validation warning message. This messages output in the UI only if the logic does not return false. If this function is called multiple times, only the message from the last calls is displayed.
...