protected function getListOrderFromSession($objectName, $requestParameterName, $defaultListOrder, $updateSession = true)
    {
        $orderSessionIdentifier = sprintf("admin.%s.currentListOrder", $objectName);

        // Find the current order
        $order = $this->getRequest()->get(
            $requestParameterName,
            $this->getSession()->get($orderSessionIdentifier, $defaultListOrder)
        );

        if ($updateSession) {
            $this->getSession()->set($orderSessionIdentifier, $order);
        }
        return $order;
    }
protected function getListOrderFromSession($objectName, $requestParameterName, $defaultListOrder, $updateSession = true)
    {
        $orderSessionIdentifier = sprintf("admin.%s.currentListOrder", $objectName);

        // Find the current order
        $order = $this->getRequest()->get(
            $requestParameterName,
            $this->getSession()->get($orderSessionIdentifier, $defaultListOrder)
        );

        if ($updateSession) {
            $this->getSession()->set($orderSessionIdentifier, $order);
        }
        return $order;
    }
protected function getListOrderFromSession ( $ objectName , $ requestParameterName , $ defaultListOrder , $ updateSession = true ) { $ orderSessionIdentifier = sprintf ( "admin.%s.currentListOrder" , $ objectName ) ; // Find the current order $ order = $ this -> getRequest ( ) -> get ( $ requestParameterName , $ this -> getSession ( ) -> get ( $ orderSessionIdentifier , $ defaultListOrder ) ) ; if ( $ updateSession ) { $ this -> getSession ( ) -> set ( $ orderSessionIdentifier , $ order ) ; } return $ order ; }
Return the current list order identifier for a given object name,
updating in using the current request.

@param string $objectName           the object name (e.g. 'attribute', 'message')
@param string $requestParameterName the name of the request parameter that defines the list order
@param string $defaultListOrder     the default order to use, if none is defined
@param bool   $updateSession        if true, the session will be updated with the current order.

@return String the current list order.
Return the current list order identifier for a given object name updating in using the current request .