PHP Класс MetaModels\FrontendIntegration\FrontendFilter

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$formId string The form id to use.
$objFilterConfig HybridFilterBlock Filter config.

Открытые методы

Метод Описание
generateClearAll ( string $strContent, string $strTemplate ) : string Add the "clear all Filter".
getMetaModelFrontendFilter ( HybridFilterBlock $objFilterConfig ) : array Configure the filter module.

Защищенные методы

Метод Описание
checkRedirect ( array $widgets, array $wantedParameter, array $allParameter ) : void Check if we want to redirect to another url.
generateContentElement ( string $content, string $replace, integer $contentId ) : string Render a content element.
generateElement ( string $table, string $content, string $replace, integer $elementId ) : string Render a module or content element.
generateModule ( string $content, string $replace, integer $moduleId ) : string Render a module.
getDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface Retrieve the event dispatcher.
getFilters ( ) : array Get the filters.
getFrontendFilterOptions ( ) : MetaModels\FrontendIntegration\FrontendFilterOptions Get the frontend filter options to use.
getJumpToUrl ( array $arrParams ) : string Generate an url determined by the given params and configured jumpTo page.
getParams ( ) : array Retrieve the parameter values.
getWantedNames ( ) : array Retrieve the list of parameter names that shall be evaluated.
redirectPost ( array $arrParams ) : void Redirect the browser to the url determined by the given params (configured jumpTo page will get used).
renderWidget ( array $widget, MetaModels\FrontendIntegration\FrontendFilterOptions $filterOptions ) : array Parse a single filter widget.

Описание методов

checkRedirect() защищенный Метод

Check if we want to redirect to another url.
protected checkRedirect ( array $widgets, array $wantedParameter, array $allParameter ) : void
$widgets array The widgets.
$wantedParameter array The wanted parameters.
$allParameter array The current parameters.
Результат void

generateClearAll() публичный Метод

This is called via parseTemplate HOOK to inject the "clear all" filter into fe_page.
public generateClearAll ( string $strContent, string $strTemplate ) : string
$strContent string The whole page content.
$strTemplate string The name of the template being parsed.
Результат string

generateContentElement() защищенный Метод

Render a content element.
protected generateContentElement ( string $content, string $replace, integer $contentId ) : string
$content string The html content in which to replace.
$replace string The string within the html to be replaced.
$contentId integer The id of the content element to be inserted for the replace string.
Результат string

generateElement() защищенный Метод

Render a module or content element.
protected generateElement ( string $table, string $content, string $replace, integer $elementId ) : string
$table string The name of the table.
$content string The html content in which to replace.
$replace string The string within the html to be replaced.
$elementId integer The id of the module/ce-element to be inserted for the replace string.
Результат string

generateModule() защищенный Метод

Render a module.
protected generateModule ( string $content, string $replace, integer $moduleId ) : string
$content string The html content in which to replace.
$replace string The string within the html to be replaced.
$moduleId integer The id of the module to be inserted for the replace string.
Результат string

getDispatcher() защищенный Метод

Retrieve the event dispatcher.
protected getDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface
Результат Symfony\Component\EventDispatcher\EventDispatcherInterface

getFilters() защищенный Метод

Get the filters.
protected getFilters ( ) : array
Результат array

getFrontendFilterOptions() защищенный Метод

Get the frontend filter options to use.
protected getFrontendFilterOptions ( ) : MetaModels\FrontendIntegration\FrontendFilterOptions
Результат MetaModels\FrontendIntegration\FrontendFilterOptions

getJumpToUrl() защищенный Метод

Generate an url determined by the given params and configured jumpTo page.
protected getJumpToUrl ( array $arrParams ) : string
$arrParams array The URL parameters to use.
Результат string the generated URL.

getMetaModelFrontendFilter() публичный Метод

Configure the filter module.
public getMetaModelFrontendFilter ( HybridFilterBlock $objFilterConfig ) : array
$objFilterConfig HybridFilterBlock The content element or module using this filter.
Результат array

getParams() защищенный Метод

Retrieve the parameter values.
protected getParams ( ) : array
Результат array

getWantedNames() защищенный Метод

Retrieve the list of parameter names that shall be evaluated.
protected getWantedNames ( ) : array
Результат array

redirectPost() защищенный Метод

This will exit the script!
protected redirectPost ( array $arrParams ) : void
$arrParams array The URL parameters to use.
Результат void

renderWidget() защищенный Метод

Parse a single filter widget.
protected renderWidget ( array $widget, MetaModels\FrontendIntegration\FrontendFilterOptions $filterOptions ) : array
$widget array The widget configuration.
$filterOptions MetaModels\FrontendIntegration\FrontendFilterOptions The filter options to apply.
Результат array

Описание свойств

$formId защищенное свойство

The form id to use.
protected string $formId
Результат string

$objFilterConfig защищенное свойство

Filter config.
protected HybridFilterBlock,MetaModels\FrontendIntegration $objFilterConfig
Результат HybridFilterBlock