src/ShopBundle/objects/db/TShopModuleArticlelistOrderby.class.php
public function GetOrderByString($sDirection = null)
    {
        if (is_null($sDirection)) {
            $sDirection = $this->fieldOrderDirection;
        }
        $sOrderBy = '';
        if (!empty($this->fieldSqlOrderBy)) {
            $sOrderBy = $this->fieldSqlOrderBy.' '.$sDirection;
        }

        if (!empty($this->fieldSqlSecondaryOrderByString)) {
            $sOrderBy .= ', '.$this->fieldSqlSecondaryOrderByString;
        }

        return $sOrderBy;
    }
public function GetOrderByString($sDirection = null)
    {
        if (is_null($sDirection)) {
            $sDirection = $this->fieldOrderDirection;
        }
        $sOrderBy = '';
        if (!empty($this->fieldSqlOrderBy)) {
            $sOrderBy = $this->fieldSqlOrderBy.' '.$sDirection;
        }

        if (!empty($this->fieldSqlSecondaryOrderByString)) {
            $sOrderBy .= ', '.$this->fieldSqlSecondaryOrderByString;
        }

        return $sOrderBy;
    }
public function GetOrderByString ( $ sDirection = null ) { if ( is_null ( $ sDirection ) ) { $ sDirection = $ this -> fieldOrderDirection ; } $ sOrderBy = '' ; if ( ! empty ( $ this -> fieldSqlOrderBy ) ) { $ sOrderBy = $ this -> fieldSqlOrderBy . ' ' . $ sDirection ; } if ( ! empty ( $ this -> fieldSqlSecondaryOrderByString ) ) { $ sOrderBy .= ', ' . $ this -> fieldSqlSecondaryOrderByString ; } return $ sOrderBy ; }
return order by string.

@param string $sDirection - ASC or DESC. if set to NULL the value set in the class will be used

@return string
return order by string .