minify/src/39f8957f-cc73-4da5-8b60-6cf...
Robot e23917c5e1
update 2024-04-07 13:20:18
2024-04-07 13:20:29 +02:00
..
README.md first commit 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
settings.json update 2024-04-07 13:20:18 2024-04-07 13:20:29 +02:00

README.md

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

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