Ответов: 99 Просмотров: 59066
 |
Class-Package.php - Contains the ftp_connection and xmlArray classes. The ftp_connection class contains functions for FTP-related file management, while the xmlArray class is a simple XML DOM parser. Both classes were located in Subs-Packages.php in previous versions of SMF. Note: The xmlArray functions documented here are the only ones that can be called from outside the class.
ftp_connection', 'Constructor for the ftp_connection class.
ftp_connection::chdir', 'Changes to the specified directory, if possible.
ftp_connection::check_response', 'Checks to see if the desired response code was returned.
ftp_connection::chmod', 'Chmods the specified file to the specified value.
ftp_connection::close', 'Closes the current FTP connection.
ftp_connection::connect', 'Called by ftp_connection to open a new connection.
ftp_connection::create_dir', 'Create a new directory with the specified name.
ftp_connection::create_file', 'Attempts to create the specified file.
ftp_connection::detect_path', 'Two purposes - attempts to detect the path for FTP (and your username if you\'re on cPanel) and also attempts to detect the path to the specified file if an FTP connection is available.
ftp_connection::list_dir', 'Retrieves a directory listing for the specified directory.
ftp_connection::locate', 'Attempts to locate the specified file or directory.
ftp_connection::passive', 'Attempts to establish a passive connection to the FTP server.
ftp_connection::unlink', 'Deletes the specified file from the server.
xmlArray', 'Creates a new xmlArray object, which is an simple xml dom parser.
xmlArray::count', 'Returns the number of elements the path matches.
xmlArray::create_xml', 'Creates an xml file from an xmlArray.
xmlArray::exists', 'Returns whether the specified path matches at least one element.
xmlArray::fetch', 'Retrieves the textual value of the specified path.
xmlArray::name', 'Returns the name of the current element, usually \'\' (empty string).
xmlArray::path', 'Finds any elements that match the path specified.
xmlArray::set', 'Returns an array of xmlArray\'s matching the specified path.
xmlArray::to_array', 'Outputs the XML in array format. |