roundcubemail/program/lib/Roundcube/html.php
public static function label($attr, $cont)
    {
        if (is_string($attr)) {
            $attr = array('for' => $attr);
        }

        return self::tag('label', $attr, $cont, array_merge(self::$common_attrib,
            array('for','onkeypress')));
    }
public static function label($attr, $cont)
    {
        if (is_string($attr)) {
            $attr = array('for' => $attr);
        }

        return self::tag('label', $attr, $cont, array_merge(self::$common_attrib,
            array('for','onkeypress')));
    }
public static function label ( $ attr , $ cont ) { if ( is_string ( $ attr ) ) { $ attr = array ( 'for' => $ attr ) ; } return self :: tag ( 'label' , $ attr , $ cont , array_merge ( self :: $ common_attrib , array ( 'for' , 'onkeypress' ) ) ) ; }
Derrived method for form element labels

@param mixed  $attr Hash array with tag attributes or string with 'for' attrib
@param string $cont Tag content

@return string HTML code
@see html::tag()
Derrived method for form element labels