...
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_numeric , strtolower , strtoupper , substr , stristr , strstr , stripos , strpos , strripos , strrpos , addslashes , chr , trim , ltrim , rtrim , str_replace , preg_match , preg_replace , preg_split , str_pad , sprintf , substr_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) | ||||
---|---|---|---|---|
|