[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/includes/Config/ -> Config.php (summary)

Define the YOURLS config

File Size: 216 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Config:: (6 methods):
  __construct()
  fix_win32_path()
  set_config()
  set_root()
  find_config()
  define_core_constants()


Class: Config  - X-Ref

__construct($config = '')   X-Ref

since: 1.7.3
param: string $config   Optional user defined config path

fix_win32_path($path)   X-Ref
Convert antislashes to slashes

since: 1.7.3
return: string  path with \ converted to /
param: string  $path

set_config($config)   X-Ref

since: 1.7.3
return: void
param: string $config   path to config file

set_root($root)   X-Ref

since: 1.7.3
return: void
param: string $root   path to YOURLS root directory

find_config()   X-Ref
Find config.php, either user defined or from standard location

since: 1.7.3
return: string         path to found config file

define_core_constants()   X-Ref
Define core constants that have not been user defined in config.php

since: 1.7.3
return: void



Generated: Tue Jan 21 05:10:11 2025 Cross-referenced by PHPXref 0.7.1