Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

call, listFindCode, listFindValue, listGetByCode, query

call Function: Calling API Logic
Code Block
languagephp
array $this->call(string $apiFunctionToCall, array $params, bool $commitOnSuccess);
query Function: Querying Data
Code Block
languagephp
array $this->query(string $sql, array $bind_parameters);
listGetByCode Function: Retrieving List Values
Code Block
languagephp
mixed $this->listGetByCode(string $list_type, mixed $list_code);
listFindValue Function: Retrieving List Values
Code Block
languagephp
string $this->listFindValue(int $recid);
listFindCode Function: Retrieving List Values
Code Block
languagephp
string $this->listFindCode(int $recid);

PCR-360 Debug

debug, error_log

debug Function: Debugging Custom Logic
Code Block
languagephp
$this->debug(mixed $debug);

...

arrayToCsv, createFile, sendSystemMessage

arrayToCsv Function: Building CSV Data
Code Block
languagephp
string $this->arrayToCsv(array $data, string $delimiter = ',', string $enclosure = '"')
createFile Function: Creating Inbound/Outbound Files
Code Block
languagephp
int|false $this->createFile(string $filename, string|array $content, string $location = 'OUTBOUND', bool $overwrite = false);
sendSystemMessage Function: Sending a System Message
Code Block
languagephp
bool $this->sendSystemMessage(string $subject, string $body, int $contactRecid, string $identifier);

...

setError, setMessage, setWarning

setError Function: Errors and Warning in Validation

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
languagephp
$this->setError(string $message);
setWarning Function: Errors and Warning in Validation

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.

...