<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>4's symfony blog &#187; phpdoc</title>
	<atom:link href="http://www.foolbirds.com/t/phpdoc/feed" rel="self" type="application/rss+xml" />
	<link>http://www.foolbirds.com</link>
	<description>all about symfony</description>
	<lastBuildDate>Fri, 14 Oct 2011 12:36:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>注释例子</title>
		<link>http://www.foolbirds.com/comment-example.html</link>
		<comments>http://www.foolbirds.com/comment-example.html#comments</comments>
		<pubDate>Tue, 06 Jan 2009 04:38:03 +0000</pubDate>
		<dc:creator>zhuozi</dc:creator>
				<category><![CDATA[symfony]]></category>
		<category><![CDATA[phpdoc]]></category>

		<guid isPermaLink="false">http://www.foolbirds.com/?p=288</guid>
		<description><![CDATA[结合phpdoc的要求和一部分自定义的规则，完成一下文档注释的例子。
&#60;?php
/**
* backtraderActions 控制器文件
* @author zhuozi &#60;lizhuo1985@gmail.com&#62;
* @history 2008-01-06 09:09 create by zhuozi
*                        2008-01-06 10:20 edit by zhuozi add a new function(List function)
*                        2008-01-06 10:30 edit by zhuozi add comments of file
*/ 

require_once dirname(__FILE__).'/../lib/backtraderGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/backtraderGeneratorHelper.class.php';

/**
* backtraderActions 控制器类
*
* @author zhuozi&#60;lizhuo1985@gmail.com&#62;
*/
class backtraderActions [...]]]></description>
			<content:encoded><![CDATA[<p>结合phpdoc的要求和一部分自定义的规则，完成一下文档注释的例子。</p>
<pre class="php" name='code'>&lt;?php
/**
* backtraderActions 控制器文件
* @author zhuozi &lt;lizhuo1985@gmail.com&gt;
* @history 2008-01-06 09:09 create by zhuozi
*                        2008-01-06 10:20 edit by zhuozi add a new function(List function)
*                        2008-01-06 10:30 edit by zhuozi add comments of file
*/ 

require_once dirname(__FILE__).'/../lib/backtraderGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/backtraderGeneratorHelper.class.php';

/**
* backtraderActions 控制器类
*
* @author zhuozi&lt;lizhuo1985@gmail.com&gt;
*/
class backtraderActions extends autoBacktraderActions
{
/**
* List动作为了backtrader的过滤器对页面显示的影响,重置过滤器之后跳转index动作
*
* @author zhuozi &lt;lizhuo1985@gmail.com&gt;
* @history 2008-01-06 09:09 create by zhuozi
*                        2008-01-06 09:09 edit by zhuozi add comment of function
* @param sfWebRequest $request
*
* @return void
*/
function executeList( sfWebRequest $request )
{
$this-&gt;getUser()-&gt;setAttribute('backtrader.filters', null, 'admin_module');
$this-&gt;getUser()-&gt;setAttribute('backtrader.sort', null, 'admin_module');
$this-&gt;getUser()-&gt;setAttribute('backtrader.page', 1, 'admin_module');
$this-&gt;redirect('backtrader/index');
}
}</pre>
<pre class="php" name='code'>&lt;?php
/**
* backtraderform 定义表单内容，继承系统生成的BaseTraderForm用于表单验证
*
* @author zhuozi &lt;lizhuo1985@gmail.com&gt;
* @history 2008-01-06 09:09 create by zhuozi
*                       2008-01-06 10:20 edit by zhuozi add a new function(configure function)
*/

/**
* BacktraderForm
*
* @author zhuozi&lt;lizhuo1985@gmail.com&gt;
*/
class BacktraderForm extends BaseTraderForm
{
/**
* Configures the current form
*
* @author zhuozi&lt;lizhuo1985@gmail.com&gt;
* @history 2008-01-05 17:30 create by zhuozi
*
* @return void
*/
public function configure()
{
$i18n = sfContext::getInstance()-&gt;getI18N();
//声明字段类型
$this-&gt;setWidget('name', new sfWidgetFormInput());
$this-&gt;setWidget('password', new sfWidgetFormInput());
$this-&gt;setWidget('email', new sfWidgetFormInput());
$this-&gt;setWidget('comment', new sfWidgetFormTextarea());
//验证条件
$this-&gt;setValidator('name', new sfValidatorString(array('max_length' =&gt; 60)));
$this-&gt;setValidator('password', new sfValidatorString(array('max_length' =&gt; 60)));
$this-&gt;setValidator('email', new sfValidatorEmail(array('required' =&gt; false), array('invalid' =&gt; $i18n-&gt;__('Invalid.'))));
}
}</pre>
<h3  class="related_post_title">随机日志</h3><ul class="related_post"><li><a href="http://www.foolbirds.com/how-to-use-swift-to-send-mail-in-symfon.html" title="如何使用swift发送邮件">如何使用swift发送邮件</a></li><li><a href="http://www.foolbirds.com/vim%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e6%b3%a8%e8%a7%a3.html" title="vim配置文件注解">vim配置文件注解</a></li><li><a href="http://www.foolbirds.com/component-slot-in-symfony.html" title="Symfony中组件槽(Component Slot)的应用">Symfony中组件槽(Component Slot)的应用</a></li><li><a href="http://www.foolbirds.com/partial-and-layout.html" title="局部模板和全局模板">局部模板和全局模板</a></li><li><a href="http://www.foolbirds.com/add-table-prefix-in-symfony.html" title="Add table prefix  in symfony－在symfony中使用表前缀">Add table prefix  in symfony－在symfony中使用表前缀</a></li><li><a href="http://www.foolbirds.com/how-to-install-symfony12-in-windows.html" title="如何在WINDOWS下设置SYMFONY1.2">如何在WINDOWS下设置SYMFONY1.2</a></li><li><a href="http://www.foolbirds.com/%e5%9c%a8layout%e4%b8%ad%e5%ba%94%e7%94%a8action%e5%ae%9a%e4%b9%89%e7%9a%84%e5%8f%98%e9%87%8f.html" title="在layout中应用action定义的变量">在layout中应用action定义的变量</a></li><li><a href="http://www.foolbirds.com/freebsd710-install-lamp-with-ports.html" title="FreeBSD7.10通过ports安装lamp">FreeBSD7.10通过ports安装lamp</a></li><li><a href="http://www.foolbirds.com/symfony-archives.html" title="symfony系列文章归档">symfony系列文章归档</a></li><li><a href="http://www.foolbirds.com/symfony-admin-generator-templates.html" title="admin后台模板作用">admin后台模板作用</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.foolbirds.com/comment-example.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

