| 1 | <?php |
||
| 10 | class Backup_Utilities { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Checks whether Safe Mode is currently on |
||
| 14 | * |
||
| 15 | * @param string $ini_get_callback By default we use `ini_get` to check for |
||
| 16 | * the Safe Mode setting but this can be |
||
| 17 | * overridden for testing purposes. |
||
| 18 | * |
||
| 19 | * @return boolean Whether Safe Mode is on or off. |
||
| 20 | */ |
||
| 21 | public static function is_safe_mode_on( $ini_get_callback = 'ini_get' ) { |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Attempt to work out path to a cli executable. |
||
| 35 | * |
||
| 36 | * @param array $paths An array of paths to check against. |
||
| 37 | * |
||
| 38 | * @return string|false The path to the executable. |
||
| 39 | */ |
||
| 40 | public static function get_executable_path( $paths ) { |
||
| 66 | } |
||
| 67 |