Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
TaskCollection.php
1<?php
2
4
6
12{
13 public static function getRestEntityName(): string
14 {
15 return 'tasks';
16 }
17
18 public static function initByDBResult(\CDBResult $result): self
19 {
20 $taskCollection = new static();
21
22 while ($row = $result->Fetch())
23 {
24 $taskCollection[] = TaskItem::initByRow($row);
25 }
26
27 return $taskCollection;
28 }
29}
static initByDBResult(\CDBResult $result)
static initByRow(array $row)
Definition TaskItem.php:76