1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
row.php
См. документацию.
1<?php
2namespace Bitrix\Report\VisualConstructor\Helper;
3
4use Bitrix\Main\ArgumentException;
5use Bitrix\Main\ArgumentNullException;
6use Bitrix\Report\VisualConstructor\Entity\DashboardRow;
7
12class Row
13{
20 public static function getDefaultRowLayoutMap($positions)
21 {
22 $rowLayout = array(
23 'type' => 'cell-container',
24 'orientation' => 'horizontal',
25 'elements' => array()
26 );
27 foreach ($positions as $position)
28 {
29 $rowLayout['elements'][] = array(
30 'type' => 'cell',
31 'id' => $position
32 );
33 }
34
35 return $rowLayout;
36 }
37
38
46 public static function getRowDefaultEntity($params)
47 {
48 if (!isset($params['cellIds']))
49 {
50 $parameter = 'cellIds';
51 throw new ArgumentException($parameter);
52 }
53
54 $cellsIds = $params['cellIds'];
55 $weight = isset($params['weight']) ? $params['weight'] : 0;
56 $row = new DashboardRow();
57 $layoutMap = self::getDefaultRowLayoutMap($cellsIds);
58 $row->setLayoutMap($layoutMap);
59 $row->setGId(Util::generateUserUniqueId());
60 $row->setWeight($weight);
61
62 return $row;
63 }
64}
$positions
Определения access_edit.php:237
static getDefaultRowLayoutMap($positions)
Определения row.php:20
static getRowDefaultEntity($params)
Определения row.php:46
static generateUserUniqueId($prefix='')
Определения util.php:16
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799