CodeExplorer displayInBackend example
$data =
$service->
getList('s_articles_attributes'
);
$offset =
(int) $this->
Request()->
getParam('start', 0
);
$limit =
(int) $this->
Request()->
getParam('limit', 20
);
$columns =
[];
for ($i =
$offset;
$i <=
$offset +
$limit; ++
$i) { if (!
isset($data[$i])) { break;
} $struct =
$data[$i];
if (!
$struct->
displayInBackend()) { continue;
} $columns[] =
[ 'column' =>
$struct->
getColumnName(),
'label' =>
$struct->
getLabel() ?:
$struct->
getColumnName(),
'type' =>
$struct->
getColumnType(),
];
} $this->
View()->
assign([ 'success' => true,