PHP 클래스 MetaModels\FrontendIntegration\FrontendFilter

파일 보기 프로젝트 열기: metamodels/core 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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