[ 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

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

set_config($config)   X-Ref

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

set_root($root)   X-Ref

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

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: Tue Sep 27 05:10:01 2022 Cross-referenced by PHPXref 0.7.1