mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
MINORE: updated documentation
This commit is contained in:
parent
c36ed78758
commit
d77104a7dc
@ -27,10 +27,11 @@ class SpamProtecterManager {
|
||||
* and a string of field names (seperated by comma) as a value.
|
||||
* The naming of the fields is based on the implementation of the subclass of SpamProtecterField.
|
||||
* *** Most of the web service doesn't require this.
|
||||
* @return SpamProtecterField
|
||||
* @return SpamProtector object
|
||||
*/
|
||||
static function update_form($form, $before=null, $callbackObject=null, $fieldsToSpamServiceMapping=null) {
|
||||
$protecter = new self::$spam_protecter();
|
||||
|
||||
$protecter->updateForm($form, $before, $callbackObject, $fieldsToSpamServiceMapping);
|
||||
return $protecter;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user