Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс FileCollection
+ Граф наследования:FileCollection:

Открытые члены

 __construct (?array $diskFiles=null, ?int $chatId=null)
 
 getCopies (?Storage $storage=null)
 
 addToTmp (string $source)
 
 getFileDiskAttributes (int $chatId, array $options=[])
 
 getPopupData (array $excludedList=[])
 
- Открытые члены унаследованные от EntityCollection
 getUnique ()
 
 getIds ()
 
 getById (int $id)
 
 toRestFormat (array $option=[])
 
 offsetSet ($offset, $value)
 
- Открытые члены унаследованные от Registry
 unsetByKeys (array $keys)
 
 filter (callable $predicate)
 
 getAny ()
 

Открытые статические члены

static getRestEntityName ()
 
static initByDiskFilesIds (array $diskFilesIds, ?int $chatId=null)
 
- Открытые статические члены унаследованные от EntityCollection
static initByArray (array $entities)
 

Дополнительные унаследованные члены

- Защищенные данные унаследованные от EntityCollection
array $entitiesWithId = []
 

Подробное описание

<int,FileItem> @method FileItem offsetGet($key)

См. определение в файле FileCollection.php строка 22

Конструктор(ы)

◆ __construct()

__construct ( ?array $diskFiles = null,
?int $chatId = null )
Аргументы
int[] | File[] | null$diskFiles
int | null$chatId

См. определение в файле FileCollection.php строка 28

Методы

◆ addToTmp()

addToTmp ( string $source)

См. определение в файле FileCollection.php строка 83

◆ getCopies()

getCopies ( ?Storage $storage = null)

См. определение в файле FileCollection.php строка 65

◆ getFileDiskAttributes()

getFileDiskAttributes ( int $chatId,
array $options = [] )

См. определение в файле FileCollection.php строка 103

◆ getPopupData()

getPopupData ( array $excludedList = [])

Returns the data to be raised to the top of the REST response. Works on the principle of the composite pattern.

См. также
RestAdapter::toRestFormat()
Аргументы
string[]$excludedList
Возвращает
PopupData

Переопределяет метод предка EntityCollection.

См. определение в файле FileCollection.php строка 114

◆ getRestEntityName()

static getRestEntityName ( )
static

Returns the name of the entity that will be used in the rest response

Возвращает
string

Замещает RestConvertible.

См. определение в файле FileCollection.php строка 41

◆ initByDiskFilesIds()

static initByDiskFilesIds ( array $diskFilesIds,
?int $chatId = null )
static
Аргументы
int[]$diskFilesIds
int | null$chatId
Возвращает
static

См. определение в файле FileCollection.php строка 51