1 | <?php |
||
9 | class Recaptcha extends Field |
||
10 | { |
||
11 | |||
12 | private $siteKey; |
||
13 | private $secretKey; |
||
14 | |||
15 | /** |
||
16 | * Creates a new recaptcha field with the provided keys |
||
17 | * @param string $label |
||
18 | * @param string $siteKey |
||
19 | * @param string $secretKey |
||
20 | */ |
||
21 | function __construct ($label, $siteKey, $secretKey) |
||
27 | |||
28 | public function getAttributes () |
||
37 | |||
38 | public function getClasses () |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getSiteKey () |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getSecretKey () |
||
60 | |||
61 | /** |
||
62 | * Gets the HTML markup of the component |
||
63 | * |
||
64 | * @param bool $showLabel |
||
65 | * |
||
66 | * @return mixed |
||
67 | */ |
||
68 | public function getHTML ($showLabel = true) |
||
72 | |||
73 | public function getName ($asMarkup = false) |
||
77 | |||
78 | public function getCollectData () |
||
82 | } |