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;
    }
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;
    }
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 ; }
Get the path of the file

@param null|string $dir_path
@param null|string $filename
@param bool        $full_path
@return string
Get the path of the file