Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 2020.1

...

Each of the different types of Custom Logic: Custom Events, Custom API, and Custom Validation share these common syntax syntaxes and available functions.

PCR-360 Data functions

...

Other allowed functions & syntax

Logical Structures: if /elseif / , elseif , else , switch/ , case /, default , break , for , foreach/ , as , while , do-while , return , new

Date/Time: date , time , mktime , strtotime , DateTime , DateInterval , add , sub, diff, format , setTimestamp , setTime , setDate

Mathematical: round , trunc ,ceil , floor , rand , srand , pow , exp , abs , max , min , bindec , hexdec , octdec , base_convert

String: is_numericstrtolower , strtoupper , substr , stristr , strstr , stripos , strpos , strripos , strrpos , addslashes , chr , trim , ltrim , rtrim , str_replace , preg_matchpreg_replace , preg_split , str_pad , sprintfsubstr_replace , strlen

Array: explode , implode , is_array , in_array , array_diff , isarray_diff_numerickey , count

JSON: json_decode , json_encode

Debug: error_log

cURL: curl_init , curl_setopt , curl_exec , curl_errno , curl_error , curl_getinfo , curl_close

cURL Constants: CURLOPT_URL, CURLOPT_HEADER, CURLOPT_NOBODY, CURLOPT_HTTPGET, CURLOPT_RETURNTRANSFER

PHP Constants: NULL, TRUE, FALSE , http_build_query

PHP Constants: Most PHP Constants are allowed.  Contact PCR if you find one that is not allowed, but would like to use. 

PCR-360 Events: PCR_Event , trigger , attach , attachDb

PCR-360 Utility: PCR_Utility_Logger , getInstance , notice

PCR-360 Validation: setMessage , setWarning , setError

Child pages (Children Display)
styleh6
sorttitle