protected function ServicesClientUUIDResourceController::validUUID in Services Client 7.2
Check if id is valid UUID string.
Parameters
string $id: Checked ID param.
Return value
bool TRUE if valid.
1 call to ServicesClientUUIDResourceController::validUUID()
- ServicesClientUUIDResourceController::normalizeEntityId in services_client_services/
includes/ ServicesClientUUIDResourceController.inc - Normalize entity id, if in UUID format, convert to local id.
File
- services_client_services/
includes/ ServicesClientUUIDResourceController.inc, line 175 - Custom controller to allow handling requests with UUIDs.
Class
- ServicesClientUUIDResourceController
- @file Custom controller to allow handling requests with UUIDs.
Code
protected function validUUID($id) {
return preg_match('/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i', $id);
}