@param array $in - The subscriber Data
array $p - A parameter array with values as follows :-
boolean prune - if true, prune the data array
(passed by reference) to only recognized/checked
fields
boolean ignore - if true, invalid fields will be pruned
from $in array -- no error thrown
boolean ignoreInactive - if true, invalid inactive
fields will be pruned from $in array - no error
thrown
boolean active - if true, only check data against
active fields. Typically true if subscribing via
form, false if admin importing.
boolean skipReq - if true, skip the required check
AND empty fields.
boolean log - if true, log invalid fields as error.
Typically true if subscribing via form, false if
admin importing.
public static subscriberData ( array &$in, $p = [] ) : boolean | ||
$in | array | |
return | boolean | validation status NOTE: has the MAGIC FUNCTIONALITY of converting date field input to a UNIX TIMESTAMP. This is necessary for quick SQL comparisson of dates, etc. NOTE: has the MAGIC FUNCTINALITY of changing "true"/"false" to checkbox "on"/off equivelent NOTE: has the MAGIC FUNCTIONALITY of trimming leading and trailing whitepace NOTE: has the MAGIC FUNCTIONALITY of shortening value to 60 characters (or 255 if a comment type) TODO -> should fields be passed by reference? e.g. are they usually already available when subscriberData() is called? |