Метод | Описание | |
---|---|---|
__construct ( MetaModels\Filter\Setting\ICollection $collection, array $data ) | Constructor - initialize the object and store the parameters. | |
generateFilterUrlFrom ( MetaModels\IItem $objItem, MetaModels\Render\Setting\ICollection $objRenderSetting ) | ||
get ( $strKey ) | ||
getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | Retrieve the event dispatcher. | |
getFilterSettings ( ) : MetaModels\Filter\Setting\ICollection | Get the parenting collection instance. | |
getMetaModel ( ) : MetaModels\IMetaModel | Return the MetaModel instance this filter setting relates to. | |
getParameterDCA ( ) | ||
getParameterFilterNames ( ) | ||
getParameterFilterWidgets ( $arrIds, $arrFilterUrl, $arrJumpTo, MetaModels\FrontendIntegration\FrontendFilterOptions $objFrontendFilterOptions ) | ||
getParameters ( ) | ||
getReferencedAttributes ( ) | ||
getServiceContainer ( ) : MetaModels\IMetaModelsServiceContainer | Retrieve the service container. |
Метод | Описание | |
---|---|---|
addUrlParameter ( string $url, string $name, mixed $value ) : string. | Add a parameter to the url, if it is auto_item, it will get prepended. | |
buildFilterUrl ( array $fragments, string $searchKey ) : string | Build the filter url based upon the fragments. | |
getFrontendFilterValue ( array $arrWidget, array $arrFilterUrl, string $strKeyOption ) : string | Translate an option to a proper url value to be used in the filter url. | |
isActiveFrontendFilterValue ( array $arrWidget, array $arrFilterUrl, string $strKeyOption ) : boolean | Returns if the given value is currently active in the given filter settings. | |
prepareFrontendFilterOptions ( array $arrWidget, array $arrFilterUrl, array $arrJumpTo, boolean $blnAutoSubmit ) : array | Generate the options for the frontend widget as the frontend templates expect them. | |
prepareFrontendFilterWidget ( array $arrWidget, array $arrFilterUrl, array $arrJumpTo, MetaModels\FrontendIntegration\FrontendFilterOptions $objFrontendFilterOptions ) : array | Returns the frontend filter widget information for the filter setting. | |
validateWidget ( |
Validate the widget using the value. |
public __construct ( MetaModels\Filter\Setting\ICollection $collection, array $data ) | ||
$collection | MetaModels\Filter\Setting\ICollection | The parenting filter settings object. |
$data | array | The attributes for this filter setting. |
public generateFilterUrlFrom ( MetaModels\IItem $objItem, MetaModels\Render\Setting\ICollection $objRenderSetting ) | ||
$objItem | MetaModels\IItem | |
$objRenderSetting | MetaModels\Render\Setting\ICollection |
public getEventDispatcher ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
Результат | Symfony\Component\EventDispatcher\EventDispatcherInterface |
public getFilterSettings ( ) : MetaModels\Filter\Setting\ICollection | ||
Результат | MetaModels\Filter\Setting\ICollection | The parent. |
protected getFrontendFilterValue ( array $arrWidget, array $arrFilterUrl, string $strKeyOption ) : string | ||
$arrWidget | array | The widget information. |
$arrFilterUrl | array | The filter url parameters to use. |
$strKeyOption | string | The option value to determine. |
Результат | string | The filter url value to use for link gererating. |
public getMetaModel ( ) : MetaModels\IMetaModel | ||
Результат | MetaModels\IMetaModel |
public getParameterFilterWidgets ( $arrIds, $arrFilterUrl, $arrJumpTo, MetaModels\FrontendIntegration\FrontendFilterOptions $objFrontendFilterOptions ) | ||
$objFrontendFilterOptions | MetaModels\FrontendIntegration\FrontendFilterOptions |
public getServiceContainer ( ) : MetaModels\IMetaModelsServiceContainer | ||
Результат | MetaModels\IMetaModelsServiceContainer |
protected isActiveFrontendFilterValue ( array $arrWidget, array $arrFilterUrl, string $strKeyOption ) : boolean | ||
$arrWidget | array | The widget information. |
$arrFilterUrl | array | The filter url parameters to use. |
$strKeyOption | string | The option value to determine. |
Результат | boolean | true If the given value is mentioned in the given filter parameters, false otherwise. |
protected prepareFrontendFilterOptions ( array $arrWidget, array $arrFilterUrl, array $arrJumpTo, boolean $blnAutoSubmit ) : array | ||
$arrWidget | array | The widget information to use for value generating. |
$arrFilterUrl | array | The filter url parameters to use. |
$arrJumpTo | array | The jumpTo page to use for URL generating - if empty, the current frontend page will get used. |
$blnAutoSubmit | boolean | Determines if the generated options/widgets shall perform auto submitting or not. |
Результат | array | The filter option values to use in the mm_filteritem_* templates. |
protected prepareFrontendFilterWidget ( array $arrWidget, array $arrFilterUrl, array $arrJumpTo, MetaModels\FrontendIntegration\FrontendFilterOptions $objFrontendFilterOptions ) : array | ||
$arrWidget | array | The widget information to use for generating. |
$arrFilterUrl | array | The filter url parameters to use. |
$arrJumpTo | array | The jumpTo page to use for URL generating - if empty, the current frontend page will get used. |
$objFrontendFilterOptions | MetaModels\FrontendIntegration\FrontendFilterOptions | The options to use. |
Результат | array |