Location: PHPKode > projects > Moc10 PHP Library > docs/api-docs/Moc10_File/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>Docs For Class Moc10_File</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Moc10_File</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|											<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Moc10_File</p>
	<ul class="tags">
				<li><span class="field">author:</span> Nick Sagona, III &lt;<a href="mailto:hide@address.com">hide@address.com</a>&gt;</li>
				<li><span class="field">version:</span> 1.9.7</li>
				<li><span class="field">copyright:</span> Copyright (c) 2009-2011 Moc 10 Media, LLC. (http://www.moc10media.com)</li>
				<li><span class="field">license:</span> <a href="http://www.moc10phplibrary.com/LICENSE.TXT">New BSD License</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_File.php.html">/File.php</a> (line <span class="field">33</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
								|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Moc10_File/Moc10_File_Upload.html">Moc10_File_Upload</a></td>
					<td>
											Moc10_File_Upload
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Moc10_Image/Moc10_Image.html">Moc10_Image</a></td>
					<td>
											Moc10_Image
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Moc10_Pdf/Moc10_Pdf.html">Moc10_Pdf</a></td>
					<td>
											Moc10_Pdf
										</td>
				</tr>
							</table>
		</div>
	</div>


	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																																																								<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$basename" title="details" class="var-name">$basename</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$dir" title="details" class="var-name">$dir</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$ext" title="details" class="var-name">$ext</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$filename" title="details" class="var-name">$filename</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$fullpath" title="details" class="var-name">$fullpath</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$mime" title="details" class="var-name">$mime</a>
				</div>
																<div class="var-title">
					<span class="var-type">int</span>
					<a href="#$size" title="details" class="var-name">$size</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$_allowed" title="details" class="var-name">$_allowed</a>
				</div>
																<div class="var-title">
					<span class="var-type"><a href="../Moc10_Language/Moc10_Language.html">Moc10_Language</a></span>
					<a href="#$_lang" title="details" class="var-name">$_lang</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$_output" title="details" class="var-name">$_output</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$_perm" title="details" class="var-name">$_perm</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																																						
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$fl</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$up</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$typ</span> = <span class="var-default">null</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#copy" title="details" class="method-name">copy</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$new</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#delete" title="details" class="method-name">delete</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#export" title="details" class="method-name">export</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$ary</span>, [<span class="var-type">string|array</span>&nbsp;<span class="var-name">$omit</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$delim</span> = <span class="var-default">','</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$esc</span> = <span class="var-default">'&quot;'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$dt</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$dload</span> = <span class="var-default">true</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$save</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getAllowedTypes" title="details" class="method-name">getAllowedTypes</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">int|boolean</span>
										<a href="#getMode" title="details" class="method-name">getMode</a>
											([<span class="var-type">boolean</span>&nbsp;<span class="var-name">$dir</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#import" title="details" class="method-name">import</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$delim</span> = <span class="var-default">','</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$esc</span> = <span class="var-default">'&quot;'</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#move" title="details" class="method-name">move</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$new</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#output" title="details" class="method-name">output</a>
											([<span class="var-type">boolean</span>&nbsp;<span class="var-name">$download</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#read" title="details" class="method-name">read</a>
											([<span class="var-type">int|string</span>&nbsp;<span class="var-name">$off</span> = <span class="var-default">null</span>], [<span class="var-type">int|string</span>&nbsp;<span class="var-name">$len</span> = <span class="var-default">null</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setFile" title="details" class="method-name">setFile</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$file</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$upload</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setMode" title="details" class="method-name">setMode</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$mode</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$dir</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#write" title="details" class="method-name">write</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$data</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$append</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$save</span> = <span class="var-default">true</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#_checkPermissions" title="details" class="method-name">_checkPermissions</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$file</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_setAllowedTypes" title="details" class="method-name">_setAllowedTypes</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$types</span>)
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
<a name="var$basename" id="$basename"><!-- --></a>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$basename</span>
						(line <span class="line-number">52</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Full basename of file, i.e. 'file.ext'</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$dir" id="$dir"><!-- --></a>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$dir</span>
						(line <span class="line-number">46</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Full, absolute directory of file, i.e. '/some/dir/'</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$ext" id="$ext"><!-- --></a>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$ext</span>
						(line <span class="line-number">64</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">File extension, i.e. 'ext'</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$filename" id="$filename"><!-- --></a>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$filename</span>
						(line <span class="line-number">58</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Full filename of file, i.e. 'file'</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$fullpath" id="$fullpath"><!-- --></a>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$fullpath</span>
						(line <span class="line-number">40</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Full path and name of the file, i.e. '/some/dir/file.ext'</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$mime" id="$mime"><!-- --></a>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$mime</span>
						(line <span class="line-number">76</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">File mime type</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$size" id="$size"><!-- --></a>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">int</span>
			<span class="var-name">$size</span>
						(line <span class="line-number">70</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">File size in bytes</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$_allowed" id="$_allowed"><!-- --></a>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$_allowed</span>
			 = <span class="var-default">array('ai'   =&gt; 'application/postscript',<br />                                'aif'  =&gt; 'audio/x-aiff',<br />                                'aiff' =&gt; 'audio/x-aiff',<br />                                'avi'  =&gt; 'video/x-msvideo',<br />                                'bmp'  =&gt; 'image/x-ms-bmp',<br />                                'css'  =&gt; 'text/css',<br />                                'csv'  =&gt; 'text/csv',<br />                                'doc'  =&gt; 'application/msword',<br />                                'docx' =&gt; 'application/msword',<br />                                'eps'  =&gt; 'application/octet-stream',<br />                                'fla'  =&gt; 'application/octet-stream',<br />                                'flv'  =&gt; 'application/octet-stream',<br />                                'gif'  =&gt; 'image/gif',<br />                                'gz'   =&gt; 'application/x-gzip',<br />                                'html' =&gt; 'text/html',<br />                                'htm'  =&gt; 'text/html',<br />                                'jpe'  =&gt; 'image/jpeg',<br />                                'jpg'  =&gt; 'image/jpeg',<br />                                'jpeg' =&gt; 'image/jpeg',<br />                                'js'   =&gt; 'text/plain',<br />                                'mov'  =&gt; 'video/quicktime',<br />                                'mp2'  =&gt; 'audio/mpeg',<br />                                'mp3'  =&gt; 'audio/mpeg',<br />                                'mp4'  =&gt; 'video/mp4',<br />                                'mpg'  =&gt; 'video/mpeg',<br />                                'mpeg' =&gt; 'video/mpeg',<br />                                'otf'  =&gt; 'application/x-font-otf',<br />                                'pdf'  =&gt; 'application/pdf',<br />                                'php'  =&gt; 'text/plain',<br />                                'png'  =&gt; 'image/png',<br />                                'ppt'  =&gt; 'application/msword',<br />                                'pptx' =&gt; 'application/msword',<br />                                'psd'  =&gt; 'image/x-photoshop',<br />                                'sit'  =&gt; 'application/x-stuffit',<br />                                'sitx' =&gt; 'application/x-stuffit',<br />                                'sql'  =&gt; 'text/plain',<br />                                'swf'  =&gt; 'application/x-shockwave-flash',<br />                                'tar'  =&gt; 'application/x-tar',<br />                                'tif'  =&gt; 'image/tiff',<br />                                'tiff' =&gt; 'image/tiff',<br />                                'tsv'  =&gt; 'text/tsv',<br />                                'ttf'  =&gt; 'application/x-font-ttf',<br />                                'txt'  =&gt; 'text/plain',<br />                                'wav'  =&gt; 'audio/x-wav',<br />                                'wma'  =&gt; 'audio/x-ms-wma',<br />                                'wmv'  =&gt; 'audio/x-ms-wmv',<br />                                'xls'  =&gt; 'application/msword',<br />                                'xlsx' =&gt; 'application/msword',<br />                                'xhtml'=&gt; 'application/xhtml+xml',<br />                                'xml'  =&gt; 'application/xml',<br />                                'zip'  =&gt; 'application/x-zip')</span>			(line <span class="line-number">94</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Array of allowed file types.</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Moc10_Image/Moc10_Image.html#var$_allowed">Moc10_Image::$_allowed</a>
								: Array of allowed file types.
							</li>
					<li>
				<a href="../Moc10_Pdf/Moc10_Pdf.html#var$_allowed">Moc10_Pdf::$_allowed</a>
								: Array of allowed file types.
							</li>
				</ul>
		

</div>
<a name="var$_lang" id="$_lang"><!-- --></a>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type"><a href="../Moc10_Language/Moc10_Language.html">Moc10_Language</a></span>
			<span class="var-name">$_lang</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">150</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Language object</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Moc10_Image/Moc10_Image.html#var$_lang">Moc10_Image::$_lang</a>
								: Language object
							</li>
					<li>
				<a href="../Moc10_Pdf/Moc10_Pdf.html#var$_lang">Moc10_Pdf::$_lang</a>
								: Language object
							</li>
				</ul>
		

</div>
<a name="var$_output" id="$_output"><!-- --></a>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$_output</span>
			 = <span class="var-default"> null</span>			(line <span class="line-number">82</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">File output data.</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Moc10_Pdf/Moc10_Pdf.html#var$_output">Moc10_Pdf::$_output</a>
								: PDF output data
							</li>
				</ul>
		

</div>
<a name="var$_perm" id="$_perm"><!-- --></a>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$_perm</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">88</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Directory and file permissions, based on CHMOD, when and if applicable.</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<a name='method_detail'></a>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">162</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor</p>
<p class="description">Instantiate the file object, either from a file on disk or as a new file.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$fl</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$up</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$typ</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fl</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$up</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$typ</span>			</li>
				</ul>
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Moc10_File/Moc10_File_Upload.html#method__construct">Moc10_File_Upload::__construct()</a>
								: Constructor
							</li>
					<li>
				<a href="../Moc10_Image/Moc10_Image.html#method__construct">Moc10_Image::__construct()</a>
								: Constructor
							</li>
					<li>
				<a href="../Moc10_Image/Moc10_Image_Upload.html#method__construct">Moc10_Image_Upload::__construct()</a>
								: Constructor
							</li>
					<li>
				<a href="../Moc10_Pdf/Moc10_Pdf.html#method__construct">Moc10_Pdf::__construct()</a>
								: Constructor
							</li>
				</ul>
	</div>
<a name="methodcopy" id="copy"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">copy</span> (line <span class="line-number">328</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Copy the file object directly to another file on disk.</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			copy
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$new</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$new</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddelete" id="delete"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">delete</span> (line <span class="line-number">570</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Delete the file object directly from disk.</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			delete
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodexport" id="export"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">export</span> (line <span class="line-number">427</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Export array data to CSV format.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			export
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$ary</span>, [<span class="var-type">string|array</span>&nbsp;<span class="var-name">$omit</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$delim</span> = <span class="var-default">','</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$esc</span> = <span class="var-default">'&quot;'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$dt</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$dload</span> = <span class="var-default">true</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$save</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$ary</span>			</li>
					<li>
				<span class="var-type">string|array</span>
				<span class="var-name">$omit</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$delim</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$esc</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dt</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$dload</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$save</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetAllowedTypes" id="getAllowedTypes"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getAllowedTypes</span> (line <span class="line-number">227</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get the current allowed files types.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getAllowedTypes
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetMode" id="getMode"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getMode</span> (line <span class="line-number">240</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get the permissions of the file.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int|boolean</span>
		<span class="method-name">
			getMode
		</span>
					([<span class="var-type">boolean</span>&nbsp;<span class="var-name">$dir</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$dir</span>			</li>
				</ul>
		
			
	</div>
<a name="methodimport" id="import"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">import</span> (line <span class="line-number">512</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Import CSV data to an array.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			import
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$delim</span> = <span class="var-default">','</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$esc</span> = <span class="var-default">'&quot;'</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$delim</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$esc</span>			</li>
				</ul>
		
			
	</div>
<a name="methodmove" id="move"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">move</span> (line <span class="line-number">360</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Move the file object directly to another location on disk.</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			move
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$new</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$new</span>			</li>
				</ul>
		
			
	</div>
<a name="methodoutput" id="output"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">output</span> (line <span class="line-number">391</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Output the file object directly.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			output
		</span>
					([<span class="var-type">boolean</span>&nbsp;<span class="var-name">$download</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$download</span>			</li>
				</ul>
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Moc10_Pdf/Moc10_Pdf.html#methodoutput">Moc10_Pdf::output()</a>
								: Output the PDF directly to the browser.
							</li>
				</ul>
	</div>
<a name="methodread" id="read"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">read</span> (line <span class="line-number">278</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Read data from a file.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			read
		</span>
					([<span class="var-type">int|string</span>&nbsp;<span class="var-name">$off</span> = <span class="var-default">null</span>], [<span class="var-type">int|string</span>&nbsp;<span class="var-name">$len</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int|string</span>
				<span class="var-name">$off</span>			</li>
					<li>
				<span class="var-type">int|string</span>
				<span class="var-name">$len</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetFile" id="setFile"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setFile</span> (line <span class="line-number">185</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set the file and its properties.</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setFile
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$file</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$upload</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$file</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$upload</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetMode" id="setMode"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setMode</span> (line <span class="line-number">254</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Change the permissions of the file.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setMode
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$mode</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$dir</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$mode</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$dir</span>			</li>
				</ul>
		
			
	</div>
<a name="methodwrite" id="write"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">write</span> (line <span class="line-number">301</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Write data to a file.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			write
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$data</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$append</span> = <span class="var-default">null</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$save</span> = <span class="var-default">true</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$data</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$append</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$save</span>			</li>
				</ul>
		
			
	</div>
<a name="method_checkPermissions" id="_checkPermissions"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_checkPermissions</span> (line <span class="line-number">625</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Check file or directory permissions.</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			_checkPermissions
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$file</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$file</span>			</li>
				</ul>
		
			
	</div>
<a name="method_setAllowedTypes" id="_setAllowedTypes"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_setAllowedTypes</span> (line <span class="line-number">604</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set the allowed files types.</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_setAllowedTypes
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$types</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$types</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Wed, 12 Jan 2011 01:17:43 -0600 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>
Return current item: Moc10 PHP Library