Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/lib/access/filter/ |
Upload File : |
<?php namespace Bitrix\Main\Access\Filter; use Bitrix\Main\Access\AccessibleController; /** * Filter for getting items according to user rights. */ interface AccessFilter { /** * @param AccessibleController $controller */ public function __construct(AccessibleController $controller); /** * Filter for getting elements. * * One instance of access filter can handle multiple entities (recommended to use 1 filter for entities that * are similar in meaning and purpose). To get a filter for a specific entity, you need to pass the `entity` parameter. * * If the user has full access, then you can return an empty array (i.e. there is no filtering). * If the user does not have access at all, then you can return a deliberately false filter that will * not return records (for example, `ID IS NULL'). * * @param string $entity * @param array $params * * @return array * * @throws UnknownEntityException if they are trying to get a filter for an unknown entity. */ public function getFilter(string $entity, array $params = []): array; }