00001 <?php 00002 /** 00003 * Magento 00004 * 00005 * NOTICE OF LICENSE 00006 * 00007 * This source file is subject to the Open Software License (OSL 3.0) 00008 * that is bundled with this package in the file LICENSE.txt. 00009 * It is also available through the world-wide-web at this URL: 00010 * http://opensource.org/licenses/osl-3.0.php 00011 * If you did not receive a copy of the license and are unable to 00012 * obtain it through the world-wide-web, please send an email 00013 * to license@magentocommerce.com so we can send you a copy immediately. 00014 * 00015 * DISCLAIMER 00016 * 00017 * Do not edit or add to this file if you wish to upgrade Magento to newer 00018 * versions in the future. If you wish to customize Magento for your 00019 * needs please refer to http://www.magentocommerce.com for more information. 00020 * 00021 * @category Varien 00022 * @package Varien_Io 00023 * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) 00024 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 00025 */ 00026 00027 00028 /** 00029 * Input/output client interface 00030 * 00031 * @category Varien 00032 * @package Varien_Io 00033 * @author Magento Core Team <core@magentocommerce.com> 00034 */ 00035 interface Varien_Io_Interface 00036 { 00037 /** 00038 * Open a connection 00039 * 00040 */ 00041 public function open(array $args=array()); 00042 00043 /** 00044 * Close a connection 00045 * 00046 */ 00047 public function close(); 00048 00049 /** 00050 * Create a directory 00051 * 00052 */ 00053 public function mkdir($dir, $mode=0777, $recursive=true); 00054 00055 /** 00056 * Delete a directory 00057 * 00058 */ 00059 public function rmdir($dir, $recursive=false); 00060 00061 /** 00062 * Get current working directory 00063 * 00064 */ 00065 public function pwd(); 00066 00067 /** 00068 * Change current working directory 00069 * 00070 */ 00071 public function cd($dir); 00072 00073 /** 00074 * Read a file 00075 * 00076 */ 00077 public function read($filename, $dest=null); 00078 00079 /** 00080 * Write a file 00081 * 00082 */ 00083 public function write($filename, $src, $mode=null); 00084 00085 /** 00086 * Delete a file 00087 * 00088 */ 00089 public function rm($filename); 00090 00091 /** 00092 * Rename or move a directory or a file 00093 * 00094 */ 00095 public function mv($src, $dest); 00096 00097 /** 00098 * Chamge mode of a directory or a file 00099 * 00100 */ 00101 public function chmod($filename, $mode); 00102 00103 /** 00104 * Get list of cwd subdirectories and files 00105 * 00106 */ 00107 public function ls($grep=null); 00108 00109 /** 00110 * Retrieve directory separator in context of io resource 00111 * 00112 */ 00113 public function dirsep(); 00114 }