public function linkAttribsToHTMLString($link_attr, $body = '', $classes = '', $id = '', $styles = '')
    {
        $link_text = null;
        if (strlen($link_attr->title)) {
            $link_text = $link_attr->title;
        } elseif (strlen($body)) {
            $link_text = $body;
        } else {
            $link_text = $link_attr->href;
        }
        return Html::link(
            $link_attr->href,
            $link_text,
            array(
                'title'  => $link_attr->title,
                'target' => $link_attr->target,
                'class'  => $classes,
                'id'     => $id,
                'style'  => $styles
            )
        );
    }
public function linkAttribsToHTMLString($link_attr, $body = '', $classes = '', $id = '', $styles = '')
    {
        $link_text = null;
        if (strlen($link_attr->title)) {
            $link_text = $link_attr->title;
        } elseif (strlen($body)) {
            $link_text = $body;
        } else {
            $link_text = $link_attr->href;
        }
        return Html::link(
            $link_attr->href,
            $link_text,
            array(
                'title'  => $link_attr->title,
                'target' => $link_attr->target,
                'class'  => $classes,
                'id'     => $id,
                'style'  => $styles
            )
        );
    }
public function linkAttribsToHTMLString ( $ link_attr , $ body = '' , $ classes = '' , $ id = '' , $ styles = '' ) { $ link_text = null ; if ( strlen ( $ link_attr -> title ) ) { $ link_text = $ link_attr -> title ; } elseif ( strlen ( $ body ) ) { $ link_text = $ body ; } else { $ link_text = $ link_attr -> href ; } return Html :: link ( $ link_attr -> href , $ link_text , array ( 'title' => $ link_attr -> title , 'target' => $ link_attr -> target , 'class' => $ classes , 'id' => $ id , 'style' => $ styles ) ) ; }
Get an HTML link from attributes that come from a link object
This is mainly used with the field type of link
@param object $link_attr
@param string $body
@param string $classes
@param string $id
@param string $styles
@return string
Get an HTML link from attributes that come from a link object This is mainly used with the field type of link