Swat/SwatTableViewOrderableColumn.php
public function setDirection($direction)
    {
        $this->direction = $direction;
        $this->default_direction = $direction;

        if ($this->view->orderby_column === null) {
            $this->view->orderby_column = $this;
        }

        $this->view->default_orderby_column = $this;

        $this->initFromGetVariables();
    }
public function setDirection($direction)
    {
        $this->direction = $direction;
        $this->default_direction = $direction;

        if ($this->view->orderby_column === null) {
            $this->view->orderby_column = $this;
        }

        $this->view->default_orderby_column = $this;

        $this->initFromGetVariables();
    }
public function setDirection ( $ direction ) { $ this -> direction = $ direction ; $ this -> default_direction = $ direction ; if ( $ this -> view -> orderby_column === null ) { $ this -> view -> orderby_column = $ this ; } $ this -> view -> default_orderby_column = $ this ; $ this -> initFromGetVariables ( ) ; }
Sets the direction of ordering

This method sets the direction of ordering of the column, either asc,
desc, or none. Valid directions are:

- {@link SwatTableViewOrderableColumn::ORDER_BY_DIR_NONE},
- {@link SwatTableViewOrderableColumn::ORDER_BY_DIR_DESCENDING}, and
- {@link SwatTableViewOrderableColumn::ORDER_BY_DIR_ASCENDING}.

@param $direction integer One of the ORDER_BY_DIR_* class contants
Sets the direction of ordering