Update factory fns for checkPermissions shorthand
Updates the examples per https://github.com/civicrm/civicrm-core/pull/17834
Each API static factory function now accepts a $checkPermissions
variable and applies it to the constructed action before returning it.
Edited by colemanw