Class Controller

Interface ApplicationAwareInterface This interface declares awareness of the concrete5 application.

Concrete\Core\Controller\AbstractController implements Concrete\Core\Application\ApplicationAwareInterface
Extended by Concrete\Core\Block\BlockController
Extended by Concrete\Block\Search\Controller
Namespace: Concrete\Block\Search
Package: Concrete\Core\Application
Located at blocks/search/controller.php

Methods summary

public
# highlightedMarkup( $fulltext, $highlight )
public
# highlightedExtendedMarkup( $fulltext, $highlight )
public
# setHighlightColor( $color )
public string
# getBlockTypeDescription( )

Used for localization. If we want to localize the name/description we have to include this.

public string
# getBlockTypeName( )

Returns the name of the block type.

public
# __construct( BlockType $obj = null )

Instantiates the block controller.

public
public
public
# view( )
public
# save( array $data )

Run when a block is added or edited. Automatically saves block data against the block's database table. If a block needs to do more than this (save to multiple tables, upload files, etc... it should override this.

Properties summary

protected string $btTable
# 'btSearch'
protected string $btInterfaceWidth
# "400"
protected string $btInterfaceHeight
# "420"
protected string $btWrapperClass
# 'ccm-ui'
protected array $btExportPageColumns
# array('postTo_cID')
protected boolean $btCacheBlockRecord
# true
protected $btCacheBlockOutput
# null
public string $title
# ""
public string $buttonText
# ">"
public string $baseSearchPath
# ""
public string $resultsURL
# ""
public string $postTo_cID
# ""
protected string $hColor
# '#EFE795'
public array $reservedParams
# array('page=','query=','search_paths[]=','submit=','search_paths%5B%5D=')