public function __construct(Result $result, \Concrete\Core\Search\Column\Column $column = null) { if ($column instanceof DatabaseItemListColumn) { $this->isColumnSortable = $column->isColumnSortable(); $this->key = $column->getColumnKey(); $this->title = $column->getColumnName(); $this->className = $column->getSortClassName($result); $this->sortURL = $column->getSortURL($result); } }