Swat/SwatToolLink.php
protected function getSensitiveTag()
    {
        $tag = new SwatHtmlTag('a');

        $tag->id = $this->id;
        $tag->class = $this->getCSSClassString();

        if ($this->target !== null) {
            $tag->target = $this->target;
        }

        if ($this->value === null) {
            $tag->href = $this->link;
        } elseif (is_array($this->value)) {
            $tag->href = vsprintf($this->link, $this->value);
        } else {
            $tag->href = sprintf($this->link, $this->value);
        }

        if ($this->tooltip !== null) {
            $tag->title = $this->tooltip;
        }

        $tag->accesskey = $this->access_key;

        return $tag;
    }
protected function getSensitiveTag()
    {
        $tag = new SwatHtmlTag('a');

        $tag->id = $this->id;
        $tag->class = $this->getCSSClassString();

        if ($this->target !== null) {
            $tag->target = $this->target;
        }

        if ($this->value === null) {
            $tag->href = $this->link;
        } elseif (is_array($this->value)) {
            $tag->href = vsprintf($this->link, $this->value);
        } else {
            $tag->href = sprintf($this->link, $this->value);
        }

        if ($this->tooltip !== null) {
            $tag->title = $this->tooltip;
        }

        $tag->accesskey = $this->access_key;

        return $tag;
    }
protected function getSensitiveTag ( ) { $ tag = new SwatHtmlTag ( 'a' ) ; $ tag -> id = $ this -> id ; $ tag -> class = $ this -> getCSSClassString ( ) ; if ( $ this -> target !== null ) { $ tag -> target = $ this -> target ; } if ( $ this -> value === null ) { $ tag -> href = $ this -> link ; } elseif ( is_array ( $ this -> value ) ) { $ tag -> href = vsprintf ( $ this -> link , $ this -> value ) ; } else { $ tag -> href = sprintf ( $ this -> link , $ this -> value ) ; } if ( $ this -> tooltip !== null ) { $ tag -> title = $ this -> tooltip ; } $ tag -> accesskey = $ this -> access_key ; return $ tag ; }
Gets the tag used to display this tool link when it is sensitive

@return SwatHtmlTag the tag used to display this tool link when it is
sensitive.
Gets the tag used to display this tool link when it is sensitive