PHP FTP classes for connecting to and getting a file list from a Windows FTP server

Here's a couple of classes that I wrote to connect and retrieve an array of file paths, names, and sizes from a Windows FTP server. There is high npath/cyclomatic complexity in getFileList() but it is left that way for easy reading of code and for performance, as this method may run (recursively) thousands or more times per request, depending on how many files and directories exist.

jQuery inherited links

This is useful when you need to make a wrapper clickable when there's a link inside it. Super handy for mobile work. Thanks to Jeremy Tredway for this snippet. Ask him if he has anything better as this code was made in 2012.