68 $this->locale = $localeResolver->
getLocale();
83 if ($childComponent instanceof
Columns) {
84 return $childComponent;
87 throw new \Exception(
'No columns found');
98 if (!isset($this->columns[$component->
getName()])) {
100 foreach (
$columns->getChildComponents() as $column) {
101 if ($column->getData(
'config/label') && $column->getData(
'config/dataType') !==
'actions') {
102 $this->columns[$component->
getName()][$column->getName()] = $column;
106 return $this->columns[$component->
getName()];
118 foreach ($this->
getColumns($component) as $column) {
119 $row[] = $column->getData(
'config/label');
122 array_walk(
$row,
function (&$header) {
123 if (mb_strpos($header,
'ID') === 0) {
124 $header =
'"' . $header .
'"';
140 foreach ($this->
getColumns($component) as $column) {
141 $row[] = $column->getName();
160 if (isset(
$options[$column][$key])) {
182 foreach ($list as
$item) {
183 if (!is_array(
$item[
'value'])) {
201 if (!is_array(
$option[
'value'])) {
222 $component = $this->filter->getComponent();
223 $childComponents = $component->getChildComponents();
224 $listingTop = $childComponents[
'listing_top'];
225 foreach ($listingTop->getChildComponents() as $child) {
226 if ($child instanceof
Filters) {
227 foreach ($child->getChildComponents() as
$filter) {
246 if (!isset($this->data[$componentName])) {
249 foreach ($this->data[$componentName] as $field) {
250 $fieldValue = $document->getData($field);
254 $convertedDate = $this->localeDate->date(
255 new \DateTime($fieldValue,
new \DateTimeZone(
'UTC')),
259 $document->setData($field, $convertedDate->format($this->dateFormat));
getCustomAttribute($attributeCode)