public static function label($for, $label, $ak = null)
{
if (is_null($ak)) {
$ak = self::getAccessKey($label, 1);
}
$label = self::highlightAccessKey($label, $ak);
return sprintf('<label for="%s"%s>%s</label>', $for, !empty($ak) ? ' accesskey="' . $ak . '"' : '', $label);
}