code/EditableSpamProtectionField.php
public function spamMapValue($mapSetting)
    {
        $map = json_decode($this->SpamFieldSettings, true);
        if (empty($map)) {
            $map = array();
        }

        if (array_key_exists($mapSetting, $map)) {
            return $map[$mapSetting];
        }
        return '';
    }
public function spamMapValue($mapSetting)
    {
        $map = json_decode($this->SpamFieldSettings, true);
        if (empty($map)) {
            $map = array();
        }

        if (array_key_exists($mapSetting, $map)) {
            return $map[$mapSetting];
        }
        return '';
    }
public function spamMapValue ( $ mapSetting ) { $ map = json_decode ( $ this -> SpamFieldSettings , true ) ; if ( empty ( $ map ) ) { $ map = array ( ) ; } if ( array_key_exists ( $ mapSetting , $ map ) ) { return $ map [ $ mapSetting ] ; } return '' ; }
Try to retrieve a value for the given spam field map name from the serialised data

@param string $mapSetting
@return string
Try to retrieve a value for the given spam field map name from the serialised data