예제 #1
0
파일: Set.php 프로젝트: ceko/concrete5-1
 public function setDefaultSortColumn(Column $col, $direction = false)
 {
     if ($direction != false) {
         $col->setColumnDefaultSortDirection($direction);
     }
     $this->defaultSortColumn = $col;
 }
예제 #2
0
파일: Column.php 프로젝트: ceko/concrete5-1
 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);
     }
 }
예제 #3
0
 public function __construct($attributeKey, $isSortable = true, $defaultSort = 'asc')
 {
     $this->attributeKey = $attributeKey;
     parent::__construct('ak_' . $attributeKey->getAttributeKeyHandle(), $attributeKey->getAttributeKeyDisplayName(), false, $isSortable, $defaultSort);
 }