Dotclear 2.24
Loading...
Searching...
No Matches
path Class Reference

Path manipulation utilities. More...

Static Public Member Functions

static real (string $filename, bool $strict=true)
 
static clean (?string $filename)
 
static info (string $filename)
 
static fullFromRoot (string $path, string $root)
 

Detailed Description

Path manipulation utilities.

Member Function Documentation

◆ real()

◆ clean()

◆ info()

static info ( string  $filename)
static

Path information

Returns an array of information:

  • dirname
  • basename
  • extension
  • base (basename without extension)
Parameters
string$filenameFile path
Returns
array

Referenced by fileItem\__construct(), dcMedia\fileRecord(), dcMedia\imageThumbCreate(), dcMedia\imageThumbRemove(), and dcMedia\imageThumbUpdate().

◆ fullFromRoot()

static fullFromRoot ( string  $path,
string  $root 
)
static

Full path with root

Returns a path with root concatenation unless path begins with a slash

Parameters
string$pathFile path
string$rootRoot path
Returns
string

Referenced by dcBlog\__construct(), and testFullFromRoot().


The documentation for this class was generated from the following file: