| [ Index ] |
PHP Cross Reference of YOURLS |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 144 lines (5 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| yourls_db_connect($context = '') X-Ref |
| Connect to DB return: \YOURLS\Database\YDB param: string $context Optional context. Default: ''. See yourls_get_db() since: 1.0 |
| yourls_get_db($context = '') X-Ref |
| Helper function: return instance of the DB Instead of: global $ydb; $ydb->do_stuff() Prefer : yourls_get_db()->do_stuff() return: \YOURLS\Database\YDB param: string $context Optional context. Default: ''. since: 1.7.10 |
| yourls_set_db($db) X-Ref |
| Helper function : set instance of DB, or unset it Instead of: global $ydb; $ydb = stuff Prefer : yourls_set_db( stuff ) (This is mostly used in the test suite) return: void param: mixed $db Either a \YOURLS\Database\YDB instance, or anything. If null, the function will unset $ydb since: 1.7.10 |
| Generated: Wed Apr 8 05:10:41 2026 | Cross-referenced by PHPXref 0.7.1 |