\org_openpsa_products_validation

Form validation functionality

Summary

Methods
Properties
Constants
is_code_available()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

is_code_available()

is_code_available(array  $fields) : mixed

Test is code is available.

If the formdata contains a product ID, it is ignored during the search

Parameters

array $fields

Returns

mixed —

True on success, array of error messages otherwise