[ 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

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

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

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

set_config($config)   X-Ref

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

set_root($root)   X-Ref

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

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

return: string         path to found config file
since: 1.7.3

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

return: void
since: 1.7.3



Generated: Sat Feb 22 05:10:06 2025 Cross-referenced by PHPXref 0.7.1