Location: PHPKode > projects > Moc10 PHP Library > docs/api-docs/Moc10_Feed/Moc10_Feed_Writer.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_Feed_Writer</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_Feed_Writer</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-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_Feed_Writer</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="_Feed---Writer.php.html">/Feed/Writer.php</a> (line <span class="field">33</span>)
		</p>
		
				
		<pre><a href="../Moc10_Dom/Moc10_Dom.html">Moc10_Dom</a>
   |
   --Moc10_Feed_Writer</pre>
	
			</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> |
						<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="#$_date" title="details" class="var-name">$_date</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$_feed_type" title="details" class="var-name">$_feed_type</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$_headers" title="details" class="var-name">$_headers</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$_items" title="details" class="var-name">$_items</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-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">array</span>&nbsp;<span class="var-name">$hdrs</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$itms</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">'RSS'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$dt</span> = <span class="var-default">'D, j M Y H:i:s O'</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#_init" title="details" class="method-name">_init</a>
										()
									</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-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$_date" id="$_date"><!-- --></a>
<div class="oddrow">

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

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Feed date format</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

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

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

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

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

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

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Feed headers</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

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

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

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Feed items</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
							<h4>Inherited Variables</h4>
				<a name='inherited_vars'><!-- --></a>
									<p>Inherited from <span class="classname"><a href="../Moc10_Dom/Moc10_Dom.html">Moc10_Dom</a></span></p>
					<blockquote>
													<span class="var-title">
								<span class="var-name"><a href="../Moc10_Dom/Moc10_Dom.html#var$_charset">Moc10_Dom::$_charset</a></span><br />
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../Moc10_Dom/Moc10_Dom.html#var$_childNodes">Moc10_Dom::$_childNodes</a></span><br />
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../Moc10_Dom/Moc10_Dom.html#var$_contentType">Moc10_Dom::$_contentType</a></span><br />
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../Moc10_Dom/Moc10_Dom.html#var$_doctypes">Moc10_Dom::$_doctypes</a></span><br />
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../Moc10_Dom/Moc10_Dom.html#var$_indent">Moc10_Dom::$_indent</a></span><br />
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../Moc10_Dom/Moc10_Dom.html#var$_lang">Moc10_Dom::$_lang</a></span><br />
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../Moc10_Dom/Moc10_Dom.html#var$_output">Moc10_Dom::$_output</a></span><br />
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../Moc10_Dom/Moc10_Dom.html#var$_type">Moc10_Dom::$_type</a></span><br />
							</span>
											</blockquote> 
										
		</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-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="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">72</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor</p>
<p class="description">Instantiate the feed object.</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">array</span>&nbsp;<span class="var-name">$hdrs</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$itms</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">'RSS'</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$dt</span> = <span class="var-default">'D, j M Y H:i:s O'</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$hdrs</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$itms</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$type</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dt</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../Moc10_Dom/Moc10_Dom.html#method__construct">Moc10_Dom::__construct()</a></dt>
						<dd>Constructor</dd>
					</dl>
			
	</div>
<a name="method_init" id="_init"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_init</span> (line <span class="line-number">91</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Initialize the feed.</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">
			_init
		</span>
				()
			</div>
	
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../Moc10_Dom/Moc10_Dom.html">Moc10_Dom</a></span></p>
					<blockquote>
													<span class="method-name"><a href="../Moc10_Dom/Moc10_Dom.html#method__construct">Moc10_Dom::__construct()</a></span><br />
													<span class="method-name"><a href="../Moc10_Dom/Moc10_Dom.html#methodaddChildren">Moc10_Dom::addChildren()</a></span><br />
													<span class="method-name"><a href="../Moc10_Dom/Moc10_Dom.html#methodgetCharset">Moc10_Dom::getCharset()</a></span><br />
													<span class="method-name"><a href="../Moc10_Dom/Moc10_Dom.html#methodgetChildren">Moc10_Dom::getChildren()</a></span><br />
													<span class="method-name"><a href="../Moc10_Dom/Moc10_Dom.html#methodgetIndent">Moc10_Dom::getIndent()</a></span><br />
													<span class="method-name"><a href="../Moc10_Dom/Moc10_Dom.html#methodgetType">Moc10_Dom::getType()</a></span><br />
													<span class="method-name"><a href="../Moc10_Dom/Moc10_Dom.html#methodremoveChildren">Moc10_Dom::removeChildren()</a></span><br />
													<span class="method-name"><a href="../Moc10_Dom/Moc10_Dom.html#methodrender">Moc10_Dom::render()</a></span><br />
													<span class="method-name"><a href="../Moc10_Dom/Moc10_Dom.html#methodsetCharset">Moc10_Dom::setCharset()</a></span><br />
													<span class="method-name"><a href="../Moc10_Dom/Moc10_Dom.html#methodsetDTD">Moc10_Dom::setDTD()</a></span><br />
													<span class="method-name"><a href="../Moc10_Dom/Moc10_Dom.html#methodsetIndent">Moc10_Dom::setIndent()</a></span><br />
													<span class="method-name"><a href="../Moc10_Dom/Moc10_Dom.html#methodsetType">Moc10_Dom::setType()</a></span><br />
											</blockquote>
										
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Wed, 12 Jan 2011 01:17:46 -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