Declaration | class Botprotection |
Datei | Botprotection.php |
Date/Time modify File | 2023-04-02 13:06:52 |
File-Size | 6125 Byte |
MD5 File | 7c796066ff9c1852ea29d90c4d1b1e50 |
Version | 1.0 |
Date | 2023-03-31 |
Methods and Parameter | Description/Comments |
---|---|
public function __construct() | Class constructor @throws Exception |
public function setMinInputTime(int $minSeconds = 5) : self | Set min input time in seconds @param int $minSeconds, defdault 5 @return $this |
public function setMaxInputTime(int $maxSeconds = 1200) : self | Set max input time in seconds @param int $maxSeconds, defdault 1200 (20 Minutes) @return $this |
public function protectionInput(string $name, bool $withoutJavascript = false) : string | create ptrotection input element @param string $name @param bool $withoutJavascript, default false @return string html |
public function status(string $name, bool $setNameInvalid = false) : int | check status @param string $name: The same name must be used here as when calling protectionInput @param bool $setIdInvalid, sets entry from name to invalid, default true, @return int : status @throws ErrorException |
public function isBot(string $name, bool $setNameInvalid = false) : bool | check if is a bot @param string $name: The same name must be used here as when calling protectionInput @param bool $setIdInvalid, sets entry from name to invalid, default true, @return bool |
Declaration/Name | Value | Description/Comments |
---|---|---|
const SESSKEY = 'Botprotection_v1'; | 'Botprotection_v1' |