protected function getClientOptions()
{
$options['ID'] = $this->getClientID();
$options['EventTarget'] = $this->getUniqueID();
$options['FormID'] = $this->Page->getForm()->getClientID();
$options['onCallback'] = $this->hasEventHandler('OnCallback');
$options['onCallbackExpired'] = $this->hasEventHandler('OnCallbackExpired');
$options['options']['sitekey'] = $this->getSiteKey();
if ($theme = $this->getTheme()) {
$options['options']['theme'] = $theme;
}
if ($type = $this->getType()) {
$options['options']['type'] = $type;
}
if ($size = $this->getSize()) {
$options['options']['size'] = $size;
}
if ($tabIndex = $this->getTabIndex()) {
$options['options']['tabindex'] = $tabIndex;
}
return $options;
}