This file is part of poMMo (http://www.pommo.org)
poMMo is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2, or any later version.
poMMo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with program; see the file docs/LICENSE. If not, write to the
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
@param array $post - Incoming post
subscriberData()
공개 정적인 메소드
@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 |
|
리턴 |
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? |