/** * Sets the location of the executable * @param String $file Path of executable * @return void */ public static final function location($file) { if (file_exists($file)) { static::$location = $file; } else { throw new \Exception('Uglify.js not found at ' . $file); } }
/** * setLocation function. * set the location for the backup log file * * @access public * @static * @param string $path the path to the location where the logfile shall be stored * @return void */ public static function setLocation($path) { // add a trailing slash, cut any existing static::$location = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; }