DataLoader
Abstract class for returning data of source elements. The source must create its own class and retrieve data using passed parameters.
Method | Description | Available from version |
---|---|---|
__construct | Class constructor | |
setConfig | Sets source settings. | |
setOptions | Sets additional settings. | |
getElementData | Returns data for element which ID was passed to the method | |
getElementListData | Returns data for list with elements | |
Service methods for handling user filter | ||
calculateFilterHash | Returns hash for cleared (corresponding to the format) block filter. | |
getFilterHash | Gets user field hash. | |
normalizeFilter | Clears block filter. | |
Methods for getting dynamic block settings | ||
getFilter | Returns user filter. | |
getSelectFields | Returns list of fields to display. | |
getPreparedSelectFields | Returns standartized list of fields (as a simple array). | |
getPreparedFilter | Returns filter for using in ORM/GetList for specific source. | |
getInternalFilter | Returns additional filter. | |
getLimit | Returns a number of elements to be displayed in the list. | |
getOrder | Returns sorting settings. | |
SEO methods | ||
getSeo | Returns object of class \Bitrix\Landing\Source\Seo for handling SEO parameters for separate element. | |
getSeoProperty | Gets SEO parameter for an element (only for detailed page). | |
getSeoTitle | Gets element name for page title. |
© «Bitrix24», 2001-2025