original_string: public function orderDir($var = null)
      {
          //user_error(__CLASS__ . '::' . __FUNCTION__ . '() is deprecated since Grav 1.6', E_USER_DEPRECATED);
  
          if ($var !== null) {
              $this->order_dir = $var;
          }
  
          if (empty($this->order_dir)) {
              $this->order_dir = 'asc';
          }
  
          return $this->order_dir;
      }
code: public function orderDir($var = null)
      {
          //user_error(__CLASS__ . '::' . __FUNCTION__ . '() is deprecated since Grav 1.6', E_USER_DEPRECATED);
  
          if ($var !== null) {
              $this->order_dir = $var;
          }
  
          if (empty($this->order_dir)) {
              $this->order_dir = 'asc';
          }
  
          return $this->order_dir;
      }
code_tokens: public function orderDir ( $ var = null ) { //user_error(__CLASS__ . '::' . __FUNCTION__ . '() is deprecated since Grav 1.6', E_USER_DEPRECATED); if ( $ var !== null ) { $ this -> order_dir = $ var ; } if ( empty ( $ this -> order_dir ) ) { $ this -> order_dir = 'asc' ; } return $ this -> order_dir ; }
docstring: Gets and sets the order by which any sub-pages should be sorted.
  
  @param  string $var the order, either "asc" or "desc"
  
  @return string      the order, either "asc" or "desc"
  @deprecated 1.6
docstring_tokens: Gets and sets the order by which any sub - pages should be sorted .