Overview

Packages

  • Auth
    • Ads
    • Ldap
    • Xoops
  • Autotasks
  • Config
    • Category
    • Item
    • Option
  • Core
    • Filesystem
    • Filters
    • Logger
    • Mail
    • Message
    • Password
    • Security
    • StopSpammer
    • Template
    • Textsanitizer
    • VersionChecker
  • Data
    • Avatar
    • Comment
  • Database
    • Connection
    • Criteria
    • Legacy
    • MySQL
    • PDO
    • Updater
  • Feeds
    • RSS
  • File
  • Form
    • Base
    • Elements
  • ICMS
    • IPF
      • View
  • Image
    • Category
  • Ipf
    • Category
    • Controller
    • Export
    • form
    • Keyhighlighter
    • Member
    • Object
    • Permission
    • richfile
    • Tree
    • urllink
    • View
  • kernel
    • Set
  • Member
    • Group
    • GroupMembership
    • GroupPermission
    • User
  • Messaging
  • Module
  • None
  • Notification
  • Page
  • Plugins
    • Editor
  • Preload
    • Libraries
  • Privmessage
  • Session
  • SmartObject
  • View
    • Block
    • Breadcrumb
    • PageNav
    • PrinterFriendly
    • Template
    • Templates
    • Theme
    • Tree

Classes

  • icms_ipf_Highlighter
  • Overview
  • Package
  • Class

Class icms_ipf_Highlighter

keyhighlighter class

This class highlight the chosen keywords in the current output buffer

Package: Ipf\Keyhighlighter
Category: ICMS
Copyright: 2004
Author: Setec Astronomy
Version: 1.0
Link: http://setecastronomy.stufftoread.com
Located at ipf/Highlighter.php
Methods summary
public
# __construct( string $keywords, boolean $singlewords = false, callable $replace_callback = null )

Main constructor

Main constructor

This is the main constructor of keyhighlighter class.
It's the only public method of the class.

Parameters

$keywords
the keywords you want to highlight
$singlewords
specify if it has to highlight also the single words.
$replace_callback

a custom callback for keyword highlight.

<?php
require 'keyhighlighter.class.php' ;

function my_highlighter ($matches) {
    return '<span style="font-weight: bolder; color: #FF0000;">' . $matches[0] . '</span>';
}

new keyhighlighter ('W3C', false, 'my_highlighter');
readfile ('http://www.w3c.org/');
Properties summary
public $content
#
API documentation generated by ApiGen