<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Zend_Filter Reviewed, Blacklist / Whitelist Filters</title>
	<atom:link href="http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/</link>
	<description></description>
	<pubDate>Sat, 05 Jul 2008 20:33:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/#comment-39716</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 21 Jul 2006 21:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1497#comment-39716</guid>
		<description>screw Zend's framework, Im using PHPonTrax</description>
		<content:encoded><![CDATA[<p>screw Zend&#8217;s framework, Im using PHPonTrax</p>]]></content:encoded>
	</item>
	<item>
		<title>By: amperspective &#187; Link Filter</title>
		<link>http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/#comment-37860</link>
		<dc:creator>amperspective &#187; Link Filter</dc:creator>
		<pubDate>Sun, 16 Jul 2006 09:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1497#comment-37860</guid>
		<description>[...] Maarten Manders has a review of the Zend Framework Zend_Filter class, basically a set of methods for validating untrusted data. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Maarten Manders has a review of the Zend Framework Zend_Filter class, basically a set of methods for validating untrusted data. [&#8230;]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Paul M. Jones &#187; Blog Archive &#187; Solar 0.15.0 alpha released</title>
		<link>http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/#comment-17088</link>
		<dc:creator>Paul M. Jones &#187; Blog Archive &#187; Solar 0.15.0 alpha released</dc:creator>
		<pubDate>Wed, 05 Apr 2006 16:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1497#comment-17088</guid>
		<description>[...] Speaking of Solar_Filter, it probably bears comparison with Zend_Filter and Zend_InputFilter, seeing as they were recently reviewed at SitePoint. Solar actually has two separate classes for these functions: Solar_Valid, to check if input matches a particular format, and Solar_Filter, to force input to match a particular format. (Solar_Filter was contributed by Matthew Weier O&#8217;Phinney some months ago; thanks, Matthew.) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Speaking of Solar_Filter, it probably bears comparison with Zend_Filter and Zend_InputFilter, seeing as they were recently reviewed at SitePoint. Solar actually has two separate classes for these functions: Solar_Valid, to check if input matches a particular format, and Solar_Filter, to force input to match a particular format. (Solar_Filter was contributed by Matthew Weier O&#8217;Phinney some months ago; thanks, Matthew.) [&#8230;]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: yosoyminero</title>
		<link>http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/#comment-16772</link>
		<dc:creator>yosoyminero</dc:creator>
		<pubDate>Thu, 30 Mar 2006 07:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1497#comment-16772</guid>
		<description>I don't really know if it is already considered, but UTF-8/Unicode should also be in the scope...</description>
		<content:encoded><![CDATA[<p>I don&#8217;t really know if it is already considered, but UTF-8/Unicode should also be in the scope&#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Thompson</title>
		<link>http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/#comment-16707</link>
		<dc:creator>Christopher Thompson</dc:creator>
		<pubDate>Wed, 29 Mar 2006 17:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1497#comment-16707</guid>
		<description>Maarten: Actually it's not overdesigned -- it's simpified, modular, and pretty standard. And as I said, I see no problem with procedural style solutions like Zend_InputFilter and would make no changes to it. 

But the classes underneath Zend_InputFilter should allow multiple for solutions that are OO or procedural, and are simple or complex. The current Zend_Filter does not. They apparently just split out code from InputFilter not thinking about other use cases.</description>
		<content:encoded><![CDATA[<p>Maarten: Actually it&#8217;s not overdesigned &#8212; it&#8217;s simpified, modular, and pretty standard. And as I said, I see no problem with procedural style solutions like Zend_InputFilter and would make no changes to it. </p>
<p>But the classes underneath Zend_InputFilter should allow multiple for solutions that are OO or procedural, and are simple or complex. The current Zend_Filter does not. They apparently just split out code from InputFilter not thinking about other use cases.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Arnaud</title>
		<link>http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/#comment-16684</link>
		<dc:creator>Arnaud</dc:creator>
		<pubDate>Wed, 29 Mar 2006 14:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1497#comment-16684</guid>
		<description>coffee_ninja: i understand the idea of the framework is to give you power through simplicity so I would say you should get both :)</description>
		<content:encoded><![CDATA[<p>coffee_ninja: i understand the idea of the framework is to give you power through simplicity so I would say you should get both :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: coffee_ninja</title>
		<link>http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/#comment-16680</link>
		<dc:creator>coffee_ninja</dc:creator>
		<pubDate>Wed, 29 Mar 2006 12:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1497#comment-16680</guid>
		<description>Arnaud, from the bit I looked at the DB portion of the framework, I'd have to agree.  I think ZFW needs it to "be complete,"  but I don't neccessary think I'm going to get  much use out of it.

I've been writing my own DB layers for my applications, writing an interface that specifies what methods I need, then implementing it for a specific DBMS. I usually write Factory class to retrieve the right implementation.  Personally I like doing things this way, as I can take advantage of features specific to any system.

Correct me if I'm wrong, but if I choose to use Zend_DB, I'll trading in a lot of power for simplicity of coding, right?</description>
		<content:encoded><![CDATA[<p>Arnaud, from the bit I looked at the DB portion of the framework, I&#8217;d have to agree.  I think ZFW needs it to &#8220;be complete,&#8221;  but I don&#8217;t neccessary think I&#8217;m going to get  much use out of it.</p>
<p>I&#8217;ve been writing my own DB layers for my applications, writing an interface that specifies what methods I need, then implementing it for a specific DBMS. I usually write Factory class to retrieve the right implementation.  Personally I like doing things this way, as I can take advantage of features specific to any system.</p>
<p>Correct me if I&#8217;m wrong, but if I choose to use Zend_DB, I&#8217;ll trading in a lot of power for simplicity of coding, right?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Arnaud</title>
		<link>http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/#comment-16669</link>
		<dc:creator>Arnaud</dc:creator>
		<pubDate>Wed, 29 Mar 2006 10:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1497#comment-16669</guid>
		<description>coffee_ninja: the db part looks like the weakest point in the MVC part right now. I've started to use the ezcDb layer instead but haven't got far enough to see what effect it has.</description>
		<content:encoded><![CDATA[<p>coffee_ninja: the db part looks like the weakest point in the MVC part right now. I&#8217;ve started to use the ezcDb layer instead but haven&#8217;t got far enough to see what effect it has.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Maarten Manders</title>
		<link>http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/#comment-16666</link>
		<dc:creator>Maarten Manders</dc:creator>
		<pubDate>Wed, 29 Mar 2006 08:28:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1497#comment-16666</guid>
		<description>Or.. let's use fluent interfaces ;)

&lt;code&gt;$filter-&#62;theShit()-&#62;outOf()-&#62;untrusted($garbage)&lt;/code&gt;

Nah, seriously: Christopher, you do have a point but your suggestion looks way overdesigned from a PHP perspective. I can't say that I love the ongoing trend to static methods but it's really simple this way and that's what the Zend Framwork is all about.</description>
		<content:encoded><![CDATA[<p>Or.. let&#8217;s use fluent interfaces ;)</p>
<code>$filter-&gt;theShit()-&gt;outOf()-&gt;untrusted($garbage)</code>
<p>Nah, seriously: Christopher, you do have a point but your suggestion looks way overdesigned from a PHP perspective. I can&#8217;t say that I love the ongoing trend to static methods but it&#8217;s really simple this way and that&#8217;s what the Zend Framwork is all about.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Thompson</title>
		<link>http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/#comment-16657</link>
		<dc:creator>Christopher Thompson</dc:creator>
		<pubDate>Wed, 29 Mar 2006 07:32:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1497#comment-16657</guid>
		<description>I really think the Zend_Filter class should be completely changed. The InputFilter class provides a handy shortcut way to do simple filtering, but for more advanced controllers you really need FilterChain/Validator style classes. To achieve that, the Zend_Filter class should be split into two groups: Filters and Rules. Filters modify the value passed to them; Rules return true/false. To allow extensiblity each Filter and Rule should be its own class. This allows FilterChain and Validator classes to accept the polymorphic Filters and Rules (respectively). 

The InputFilter class could keep the same interface and would only need minor changes internally to use the Filters and Rules classes. But this change to Zend_Filter would open up many more filtering and validation possiblities.</description>
		<content:encoded><![CDATA[<p>I really think the Zend_Filter class should be completely changed. The InputFilter class provides a handy shortcut way to do simple filtering, but for more advanced controllers you really need FilterChain/Validator style classes. To achieve that, the Zend_Filter class should be split into two groups: Filters and Rules. Filters modify the value passed to them; Rules return true/false. To allow extensiblity each Filter and Rule should be its own class. This allows FilterChain and Validator classes to accept the polymorphic Filters and Rules (respectively). </p>
<p>The InputFilter class could keep the same interface and would only need minor changes internally to use the Filters and Rules classes. But this change to Zend_Filter would open up many more filtering and validation possiblities.</p>]]></content:encoded>
	</item>
</channel>
</rss>
