original_string: public function getPath($dir_path = null, $filename = null, $full_path = false)
      {
          if ($full_path) {
              $path = $this->upload_path;
          } else {
              $path = $this->web_path;
          }
          if (!is_null($dir_path)) {
              $path = self::DS . $this->DirTrim($path, $dir_path);
          }
          if (!is_null($filename)) {
              $path = self::DS . $this->DirTrim($path, $filename);
          }
  
          return $path;
      }
code: public function getPath($dir_path = null, $filename = null, $full_path = false)
      {
          if ($full_path) {
              $path = $this->upload_path;
          } else {
              $path = $this->web_path;
          }
          if (!is_null($dir_path)) {
              $path = self::DS . $this->DirTrim($path, $dir_path);
          }
          if (!is_null($filename)) {
              $path = self::DS . $this->DirTrim($path, $filename);
          }
  
          return $path;
      }
code_tokens: public function getPath ( $ dir_path = null , $ filename = null , $ full_path = false ) { if ( $ full_path ) { $ path = $ this -> upload_path ; } else { $ path = $ this -> web_path ; } if ( ! is_null ( $ dir_path ) ) { $ path = self :: DS . $ this -> DirTrim ( $ path , $ dir_path ) ; } if ( ! is_null ( $ filename ) ) { $ path = self :: DS . $ this -> DirTrim ( $ path , $ filename ) ; } return $ path ; }
docstring: Get the path of the file
  
  @param null|string $dir_path
  @param null|string $filename
  @param bool        $full_path
  @return string
docstring_tokens: Get the path of the file