clearFusionCMS 3.0.0
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • clearFusionCMS
    • module
      • cloudflare
      • comments
      • content
      • forms
      • members
      • search
  • fusionLib
  • None

Classes

  • contentInstall
  • contentSearchHelper
  • contentSettings

Class contentSearchHelper

contentSearchHelper Class

Class to provide support for search to gain access to content.

cfSearchHelper
Extended by contentSearchHelper
Package: clearFusionCMS\module\content
Copyright: Copyright (c) 2012 clearFusionCMS. All rights reserved.
Located at system/modules/content/contentSearchHelper.php

Methods summary

public
# __construct( flDb $db )

Create the helper object.

Create the helper object.

Parameters

$db
The database object.

Overrides

cfSearchHelper::__construct
public
# getContentCount( )

Get the number of content items.

Get the number of content items.

public
# reindex( integer $start, integer $items )

Reindex the block of items.

Reindex the block of items.

Parameters

$start
The index to start working from.
$items
The number of items to index.
public array
# getSearchSummary( string $id, string $order = null, integer $words = 30 )

Get the search summary for the given search path.

Get the search summary for the given search path.

Parameters

$id
The ID of the element to get a summary of.
$order
The order to use data to generate the summary or null for the default.
$words
The number of words to return in the summary.

Returns

array
The summary data.
public string
# getURI( string $id, boolean $absolute = true )

Get the URI of the page holding the content.

Get the URI of the page holding the content.

Parameters

$id
The ID of the element to get the page URI of.
$absolute
true if an absolute URI should be returned; else false for a relative URI.

Returns

string
The URI of the page or false if not found.

Methods inherited from cfSearchHelper

getHelper()

Properties summary

protected cfContent $content

The content object.

The content object.

#

Properties inherited from cfSearchHelper

$db

clearFusionCMS 3.0.0 API documentation generated by ApiGen