minify/src/39f8957f-cc73-4da5-8b60-6cf25d4ab058
2023-04-15 16:58:37 +02:00
..
code.php first commit 2023-04-15 16:58:37 +02:00
code.power first commit 2023-04-15 16:58:37 +02:00
README.md first commit 2023-04-15 16:58:37 +02:00
settings.json first commit 2023-04-15 16:58:37 +02:00

██████╗  ██████╗ ██╗    ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║    ██║██╔════╝██╔══██╗
██████╔╝██║   ██║██║ █╗ ██║█████╗  ██████╔╝
██╔═══╝ ██║   ██║██║███╗██║██╔══╝  ██╔══██╗
██║     ╚██████╔╝╚███╔███╔╝███████╗██║  ██║
╚═╝      ╚═════╝  ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝

class Converter (Details)

namespace: VDM\Minify\Path

@startuml
class Converter  #Gold {
  # $from
  # $to
  + __construct(string $from, string $to, ...)
  # normalize(string $path) : string
  # shared(string $path1, string $path2) : string
  + convert(string $path) : string
  # dirname(string $path) : string
}

note right of Converter::__construct
  

  
  arguments:
    string $from
    string $to
    string $root = ''
end note

note right of Converter::normalize
  Normalize path.

  return: string
end note

note right of Converter::shared
  Figure out the shared path of 2 locations.
Example:
/home/forkcms/frontend/core/layout/images/img.gif
and
/home/forkcms/frontend/cache/minified_css
share
/home/forkcms/frontend

  return: string
end note

note right of Converter::convert
  Convert paths relative from 1 file to another.
E.g.
../images/img.gif relative to /home/forkcms/frontend/core/layout/css
should become:
../../core/layout/images/img.gif relative to
/home/forkcms/frontend/cache/minified_css

  return: string
end note

note right of Converter::dirname
  Attempt to get the directory name from a path.

  return: string
end note
 
@enduml

     ██╗ ██████╗██████╗
     ██║██╔════╝██╔══██╗
     ██║██║     ██████╔╝
██   ██║██║     ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
 ╚════╝  ╚═════╝╚═════╝

Build with Joomla Component Builder