Location: PHPKode > projects > Moc10 PHP Library > docs/api-docs/elementindex_Moc10_File.html
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html>
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title></title>
			<link rel="stylesheet" href="media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
						<a name="top"></a>
<h2>[Moc10_File] element index</h2>
	<h3>Package indexes</h3>
	<ul>
				<li><a href="elementindex_Moc10_Autoloader.html">Moc10_Autoloader</a></li>
					<li><a href="elementindex_Moc10_Cookie.html">Moc10_Cookie</a></li>
					<li><a href="elementindex_Moc10_Curl.html">Moc10_Curl</a></li>
					<li><a href="elementindex_Moc10_Db.html">Moc10_Db</a></li>
					<li><a href="elementindex_Moc10_Dom.html">Moc10_Dom</a></li>
					<li><a href="elementindex_Moc10_Feed.html">Moc10_Feed</a></li>
							<li><a href="elementindex_Moc10_Form.html">Moc10_Form</a></li>
					<li><a href="elementindex_Moc10_Ftp.html">Moc10_Ftp</a></li>
					<li><a href="elementindex_Moc10_Image.html">Moc10_Image</a></li>
					<li><a href="elementindex_Moc10_Language.html">Moc10_Language</a></li>
					<li><a href="elementindex_Moc10_Mail.html">Moc10_Mail</a></li>
					<li><a href="elementindex_Moc10_Pdf.html">Moc10_Pdf</a></li>
					<li><a href="elementindex_Moc10_Record.html">Moc10_Record</a></li>
					<li><a href="elementindex_Moc10_Session.html">Moc10_Session</a></li>
					<li><a href="elementindex_Moc10_String.html">Moc10_String</a></li>
			</ul>
<a href="elementindex.html">All elements</a>
<br />
<div class="index-letter-menu">
	<a class="index-letter" href="elementindex_Moc10_File.html#b">b</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#c">c</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#d">d</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#e">e</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#f">f</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#g">g</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#i">i</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#m">m</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#o">o</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#p">p</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#r">r</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#s">s</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#u">u</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#w">w</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#_">_</a>
</div>

	<a name="_"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">_</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$_allowed</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#var$_allowed">Moc10_File::$_allowed</a> in File.php</div>
							<div class="index-item-description">Array of allowed file types.</div>
					</dd>
			<dt class="field">
						<span class="var-title">$_full</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File_Dir.html#var$_full">Moc10_File_Dir::$_full</a> in Dir.php</div>
							<div class="index-item-description">Flag to store the full path.</div>
					</dd>
			<dt class="field">
						<span class="var-title">$_lang</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#var$_lang">Moc10_File::$_lang</a> in File.php</div>
							<div class="index-item-description">Language object</div>
					</dd>
			<dt class="field">
						<span class="var-title">$_max</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File_Upload.html#var$_max">Moc10_File_Upload::$_max</a> in Upload.php</div>
							<div class="index-item-description">Set the maximum allowed file size. Set to null to allow any size.</div>
					</dd>
			<dt class="field">
						<span class="var-title">$_output</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#var$_output">Moc10_File::$_output</a> in File.php</div>
							<div class="index-item-description">File output data.</div>
					</dd>
			<dt class="field">
						<span class="var-title">$_perm</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#var$_perm">Moc10_File::$_perm</a> in File.php</div>
							<div class="index-item-description">Directory and file permissions, based on CHMOD, when and if applicable.</div>
					</dd>
			<dt class="field">
						<span class="var-title">$_rec</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File_Dir.html#var$_rec">Moc10_File_Dir::$_rec</a> in Dir.php</div>
							<div class="index-item-description">Flag to dig recursively.</div>
					</dd>
			<dt class="field">
						<span class="method-title">_checkPermissions</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#method_checkPermissions">Moc10_File::_checkPermissions()</a> in File.php</div>
							<div class="index-item-description">Check file or directory permissions.</div>
					</dd>
			<dt class="field">
						<span class="method-title">_setAllowedTypes</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#method_setAllowedTypes">Moc10_File::_setAllowedTypes()</a> in File.php</div>
							<div class="index-item-description">Set the allowed files types.</div>
					</dd>
			<dt class="field">
						<span class="method-title">__construct</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File_Upload.html#method__construct">Moc10_File_Upload::__construct()</a> in Upload.php</div>
							<div class="index-item-description">Constructor</div>
					</dd>
			<dt class="field">
						<span class="method-title">__construct</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#method__construct">Moc10_File::__construct()</a> in File.php</div>
							<div class="index-item-description">Constructor</div>
					</dd>
			<dt class="field">
						<span class="method-title">__construct</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File_Dir.html#method__construct">Moc10_File_Dir::__construct()</a> in Dir.php</div>
							<div class="index-item-description">Constructor</div>
					</dd>
		</dl>
	<a name="b"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">b</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$basename</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#var$basename">Moc10_File::$basename</a> in File.php</div>
							<div class="index-item-description">Full basename of file, i.e. 'file.ext'</div>
					</dd>
		</dl>
	<a name="c"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">c</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">copy</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#methodcopy">Moc10_File::copy()</a> in File.php</div>
							<div class="index-item-description">Copy the file object directly to another file on disk.</div>
					</dd>
		</dl>
	<a name="d"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">d</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$dir</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#var$dir">Moc10_File::$dir</a> in File.php</div>
							<div class="index-item-description">Full, absolute directory of file, i.e. '/some/dir/'</div>
					</dd>
			<dt class="field">
						<span class="method-title">delete</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#methoddelete">Moc10_File::delete()</a> in File.php</div>
							<div class="index-item-description">Delete the file object directly from disk.</div>
					</dd>
			<dt class="field">
						<span class="include-title">Dir.php</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/_File---Dir.php.html">Dir.php</a> in Dir.php</div>
					</dd>
		</dl>
	<a name="e"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">e</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$ext</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#var$ext">Moc10_File::$ext</a> in File.php</div>
							<div class="index-item-description">File extension, i.e. 'ext'</div>
					</dd>
			<dt class="field">
						<span class="method-title">emptyDir</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File_Dir.html#methodemptyDir">Moc10_File_Dir::emptyDir()</a> in Dir.php</div>
							<div class="index-item-description">Empty an entire directory.</div>
					</dd>
			<dt class="field">
						<span class="method-title">export</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#methodexport">Moc10_File::export()</a> in File.php</div>
							<div class="index-item-description">Export array data to CSV format.</div>
					</dd>
		</dl>
	<a name="f"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">f</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$filename</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#var$filename">Moc10_File::$filename</a> in File.php</div>
							<div class="index-item-description">Full filename of file, i.e. 'file'</div>
					</dd>
			<dt class="field">
						<span class="var-title">$files</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File_Dir.html#var$files">Moc10_File_Dir::$files</a> in Dir.php</div>
							<div class="index-item-description">The files within the directory</div>
					</dd>
			<dt class="field">
						<span class="var-title">$fullpath</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#var$fullpath">Moc10_File::$fullpath</a> in File.php</div>
							<div class="index-item-description">Full path and name of the file, i.e. '/some/dir/file.ext'</div>
					</dd>
			<dt class="field">
						<span class="include-title">File.php</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/_File.php.html">File.php</a> in File.php</div>
					</dd>
		</dl>
	<a name="g"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">g</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">getAllowedTypes</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#methodgetAllowedTypes">Moc10_File::getAllowedTypes()</a> in File.php</div>
							<div class="index-item-description">Get the current allowed files types.</div>
					</dd>
			<dt class="field">
						<span class="method-title">getMode</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#methodgetMode">Moc10_File::getMode()</a> in File.php</div>
							<div class="index-item-description">Get the permissions of the file.</div>
					</dd>
			<dt class="field">
						<span class="method-title">getMode</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File_Dir.html#methodgetMode">Moc10_File_Dir::getMode()</a> in Dir.php</div>
							<div class="index-item-description">Get the permissions of the directory.</div>
					</dd>
		</dl>
	<a name="i"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">i</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">import</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#methodimport">Moc10_File::import()</a> in File.php</div>
							<div class="index-item-description">Import CSV data to an array.</div>
					</dd>
		</dl>
	<a name="m"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">m</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$mime</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#var$mime">Moc10_File::$mime</a> in File.php</div>
							<div class="index-item-description">File mime type</div>
					</dd>
			<dt class="field">
						Moc10_File
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html">Moc10_File</a> in File.php</div>
							<div class="index-item-description">Moc10_File</div>
					</dd>
			<dt class="field">
						Moc10_File_Dir
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File_Dir.html">Moc10_File_Dir</a> in Dir.php</div>
							<div class="index-item-description">Moc10_File_Dir</div>
					</dd>
			<dt class="field">
						Moc10_File_Upload
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File_Upload.html">Moc10_File_Upload</a> in Upload.php</div>
							<div class="index-item-description">Moc10_File_Upload</div>
					</dd>
			<dt class="field">
						<span class="method-title">move</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#methodmove">Moc10_File::move()</a> in File.php</div>
							<div class="index-item-description">Move the file object directly to another location on disk.</div>
					</dd>
		</dl>
	<a name="o"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">o</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">output</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#methodoutput">Moc10_File::output()</a> in File.php</div>
							<div class="index-item-description">Output the file object directly.</div>
					</dd>
		</dl>
	<a name="p"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">p</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$path</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File_Dir.html#var$path">Moc10_File_Dir::$path</a> in Dir.php</div>
							<div class="index-item-description">The directory path</div>
					</dd>
		</dl>
	<a name="r"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">r</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">read</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#methodread">Moc10_File::read()</a> in File.php</div>
							<div class="index-item-description">Read data from a file.</div>
					</dd>
		</dl>
	<a name="s"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">s</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="var-title">$size</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#var$size">Moc10_File::$size</a> in File.php</div>
							<div class="index-item-description">File size in bytes</div>
					</dd>
			<dt class="field">
						<span class="method-title">setFile</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#methodsetFile">Moc10_File::setFile()</a> in File.php</div>
							<div class="index-item-description">Set the file and its properties.</div>
					</dd>
			<dt class="field">
						<span class="method-title">setMode</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#methodsetMode">Moc10_File::setMode()</a> in File.php</div>
							<div class="index-item-description">Change the permissions of the file.</div>
					</dd>
			<dt class="field">
						<span class="method-title">setMode</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File_Dir.html#methodsetMode">Moc10_File_Dir::setMode()</a> in Dir.php</div>
							<div class="index-item-description">Change the permissions of the directory.</div>
					</dd>
		</dl>
	<a name="u"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">u</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="include-title">Upload.php</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/_File---Upload.php.html">Upload.php</a> in Upload.php</div>
					</dd>
		</dl>
	<a name="w"></a>
	<div class="index-letter-section">
		<div style="float: left" class="index-letter-title">w</div>
		<div style="float: right"><a href="#top">top</a></div>
		<div style="clear: both"></div>
	</div>
	<dl>
			<dt class="field">
						<span class="method-title">write</span>
					</dt>
		<dd class="index-item-body">
			<div class="index-item-details"><a href="Moc10_File/Moc10_File.html#methodwrite">Moc10_File::write()</a> in File.php</div>
							<div class="index-item-description">Write data to a file.</div>
					</dd>
		</dl>

<div class="index-letter-menu">
	<a class="index-letter" href="elementindex_Moc10_File.html#b">b</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#c">c</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#d">d</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#e">e</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#f">f</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#g">g</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#i">i</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#m">m</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#o">o</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#p">p</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#r">r</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#s">s</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#u">u</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#w">w</a>
	<a class="index-letter" href="elementindex_Moc10_File.html#_">_</a>
</div>	</body>
</html>
Return current item: Moc10 PHP Library