public function setHelpText(string $text = '', string $click_href = '', bool $href_new_window = false)
    {
        $this->help_href_new_window = $href_new_window;

        $text = trim($text);
        $click_href = trim($click_href);

        if ($text === '' && $click_href === '') {
            throw new RuntimeException('Help must contain text or href');
        }

        if ($click_href === '' && $href_new_window) {
            throw new RuntimeException('Help error. $href_new_window parameter cannot be used without $click_href parameter.');
        }

        $this->help = true;
        $this->help_text = $text;

        if ($click_href !== '') {
            $this->help_href = $click_href;
        }

        return $this;
    }
public function setHelpText(string $text = '', string $click_href = '', bool $href_new_window = false)
    {
        $this->help_href_new_window = $href_new_window;

        $text = trim($text);
        $click_href = trim($click_href);

        if ($text === '' && $click_href === '') {
            throw new RuntimeException('Help must contain text or href');
        }

        if ($click_href === '' && $href_new_window) {
            throw new RuntimeException('Help error. $href_new_window parameter cannot be used without $click_href parameter.');
        }

        $this->help = true;
        $this->help_text = $text;

        if ($click_href !== '') {
            $this->help_href = $click_href;
        }

        return $this;
    }
public function setHelpText ( string $ text = '' , string $ click_href = '' , bool $ href_new_window = false ) { $ this -> help_href_new_window = $ href_new_window ; $ text = trim ( $ text ) ; $ click_href = trim ( $ click_href ) ; if ( $ text === '' && $ click_href === '' ) { throw new RuntimeException ( 'Help must contain text or href' ) ; } if ( $ click_href === '' && $ href_new_window ) { throw new RuntimeException ( 'Help error. $href_new_window parameter cannot be used without $click_href parameter.' ) ; } $ this -> help = true ; $ this -> help_text = $ text ; if ( $ click_href !== '' ) { $ this -> help_href = $ click_href ; } return $ this ; }
Question sign near column title with help text showing on mouse hover

@param string $text text to show
@param string $click_href link to go onclick
@param bool $href_new_window open link in new window

@return $this
@throws \RuntimeException
Question sign near column title with help text showing on mouse hover