\CodeIgniter\HoneypotHoneypot

class Honeypot

Summary

Methods
Properties
Constants
__construct()
hasContent()
attachHoneypot()
No public properties found
No constants found
prepareTemplate()
$config
N/A
No private methods found
No private properties found
N/A

Properties

Methods

__construct()

__construct(\CodeIgniter\Config\BaseConfig  $config) 

Constructor.

Parameters

\CodeIgniter\Config\BaseConfig $config

Throws

\CodeIgniter\Honeypot\type

hasContent()

hasContent(\CodeIgniter\HTTP\RequestInterface  $request) 

Checks the request if honeypot field has data.

Parameters

\CodeIgniter\HTTP\RequestInterface $request

attachHoneypot()

attachHoneypot(\CodeIgniter\HTTP\ResponseInterface  $response) 

Attaches Honeypot template to response.

Parameters

\CodeIgniter\HTTP\ResponseInterface $response

prepareTemplate()

prepareTemplate(string  $template) : string

Prepares the template by adding label content and field name.

Parameters

string $template

Returns

string