Tiger_Service_Validate

@api · extends Tiger_Service_Service

Tiger_Service_Validate — convenience validation, over /api.

Convenience validation (TigerValidateJS) runs a form's REAL server-side validators one field at a time, on blur, BEFORE submit — so every value is known-good before the user clicks the button, and a bad one shows its message inline while it's easy to fix.

It's a first-party CORE service reachable at module=tiger & service=validate (the reserved-module guard is disabled — the ACL is the gate). It carries exactly ONE public allow guest rule in core acl.ini; every other TigerService* has no rule and is deny-by-default, so nothing kernel-internal is exposed by this being reachable.

The message names the form to check (its module + form name travel as params, distinct from the routing module=tiger): module=tiger service=validate method=field form_module= form= field= value= [+ other fields] Returns { valid, message } in the success envelope's data. Always succeeds at the service level (result=1); field validity is in the payload. Unknown form → valid (never block the UI — submit-time isValid() stays authoritative). Only instantiates real Tiger_Form subclasses (sanitized names + subclass check), and building a form is read-only, so there's no mutation surface here.

Methods

field()

field(array $params): void

Validate a single form field with its real server-side validators.

  • $params array — the request payload (form_module, form, field, value, …)