Changeset 932 for trunk/system/libraries/Ftp.php
- Timestamp:
- 11/01/2007 03:14:45 AM (13 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Ftp.php (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Ftp.php
r931 r932 20 20 /* 21 21 * Method: __construct 22 * Sets Preferences. Can be passed an array of config values 22 * Sets Preferences. 23 * 24 * Parameters: 25 * config - custom configuration 23 26 */ 24 27 public function __construct($config = array()) … … 34 37 /* 35 38 * Method: initialize 36 * Initialize preferences 37 * 38 * Parameters: 39 * config - c onfig preferences39 * Initialize preferences. 40 * 41 * Parameters: 42 * config - custom configuration 40 43 */ 41 44 public function initialize($config = array()) … … 55 58 /* 56 59 * Method: connect 57 * Connect to the FTP 60 * Connect to the FTP. 58 61 * 59 62 * Parameters: … … 99 102 /* 100 103 * Method: login 101 * Login to the FTP 104 * Login to the FTP. 102 105 * 103 106 * Returns: … … 111 114 /* 112 115 * Method: is_conn 113 * Validates the connection ID 116 * Validates the connection ID. 114 117 * 115 118 * Returns: … … 168 171 /* 169 172 * Method: mkdir 170 * Create a directory 173 * Create a directory. 171 174 * 172 175 * Parameters: … … 204 207 /* 205 208 * Method: upload 206 * Upload a file to the server 209 * Upload a file to the server. 207 210 * 208 211 * Parameters: … … 258 261 /* 259 262 * Method: rename 260 * Rename (or move) a file 263 * Rename (or move) a file. 261 264 * 262 265 * Parameters: … … 291 294 /* 292 295 * Method: move 293 * Move a file 296 * Move a file. 294 297 * 295 298 * Parameters: … … 307 310 /* 308 311 * Method: delete_file 309 * Delete a file 312 * Delete a file. 310 313 * 311 314 * Parameters: … … 336 339 /* 337 340 * Method: delete_dir 338 * Delete a folder and recursively delete everything (including sub-folders) contained within it 341 * Delete a folder and recursively delete everything (including sub-folders) contained within it. 339 342 * 340 343 * Parameters: … … 383 386 /* 384 387 * Method: chmod 385 * Set file permissions 388 * Set file permissions. 386 389 * 387 390 * Parameters: … … 423 426 /* 424 427 * Method: list_files 425 * FTP List files in the specified directory 428 * FTP List files in the specified directory. 426 429 * 427 430 * Parameters: … … 447 450 * This function recursively reads a folder and everything it contains (including 448 451 * sub-folders) and creates a mirror via FTP based on it. Whatever the directory structure 449 * of the original file path will be recreated on the server 452 * of the original file path will be recreated on the server. 450 453 * 451 454 * Parameters: … … 496 499 /* 497 500 * Method: get_extension 498 * Extract the file extension 501 * Extract the file extension. 499 502 * 500 503 * Parameters: … … 517 520 /* 518 521 * Method: set_type 519 * Returns the transfer mode for a file extension (ascii or binary) 522 * Returns the transfer mode for a file extension (ascii or binary). 520 523 * 521 524 * Parameters: … … 549 552 /* 550 553 * Method: close 551 * Close the connection 554 * Close the connection. 552 555 * 553 556 * Returns: … … 564 567 /* 565 568 * Method: error 566 * Display error message 569 * Display error message. 567 570 * 568 571 * Parameters:
