<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 18 Jun 2013 01:55:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DZone.com: Zend_Validate for the win]]></title>
      <guid>http://www.phpdeveloper.org/news/15534</guid>
      <link>http://www.phpdeveloper.org/news/15534</link>
      <description><![CDATA[<p>
In <a href="http://css.dzone.com/articles/zendvalidate-win">this new post</a> to DZone.com today <i>Giorgio Sironi</i> looks at what he considers one of the more valuable yet underestimated components of the Zend Framework - Zend_Validate.
</p>
<blockquote>
Zend_Validate is a component of Zend Framework which provides validation classes which out-of-the-box enable you to check from string lengths to stranger properties like conformance to regular expressions or to a standard for barcodes. [...] Some parts of Zend_Validate are quite complex, and tie-in with the other components: there are file-related validations on size, hash and more to attach to your forms; in the domain-specific category instead, we can find validator for credit card numbers consistency, or barcodes; isbn codes; and more...
</blockquote>
<p>
He includes a code sample to show of just some of the validators the component includes like: alpha-numeric, "between", valid email address, valid IP address, matches a regular expression and, a very handy feature of the component, setting up chains of validations.
</p>]]></description>
      <pubDate>Fri, 03 Dec 2010 10:32:58 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ian Barber's Blog: PageRank In PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/13683</guid>
      <link>http://www.phpdeveloper.org/news/13683</link>
      <description><![CDATA[<p>
<i>Ian Barber</i> has put together <a href="http://phpir.com/pagerank-in-php">a new blog post</a> that looks at his creation of a simple PageRank-style algorithm, similar to the ideas behind Google's famous ranking technique.
</p>
<blockquote>
The idea is that there is a random surfer, who starts on web page then browses through in a somewhat random way. [...] This random walk is a Markov chain, a traversal of a matrix that gives the probability of moving to any state from any other state, with the total probabilities for the destinations from any given page adding up to 1. PageRank attempts to find extract a vector of weights from that table, with one weight per page - they aren't related to any particularly query, so are only ever going to be a factor in a page being returned on a results page.
</blockquote>
<p>
He includes the code to create a page rank rating for a sample set of data with the results showing the differences in ranking based on frequency of times the "page" is linked to and how that relates to the rankings of the other pages.
</p>]]></description>
      <pubDate>Wed, 16 Dec 2009 09:45:39 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Robert Basic's Blog: Chaining routes in Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/13600</guid>
      <link>http://www.phpdeveloper.org/news/13600</link>
      <description><![CDATA[<p>
<i>Robert Basic</i> has <a href="http://robertbasic.com/blog/chaining-routes-in-zend-framework/">a quick new tutorial</a> about chaining routes in your Zend Framework applications:
</p>
<blockquote>
On a forum, there was a question today, about adding language "support" to the routes using <a href="http://framework.zend.com/">Zend Framework</a>. The guy wanted routes like /en/foo/bar or /de/baz. I wrote there an example for that using <a href="http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.chain">Zend_Router_Routes_Chain</a>, so just posting that example here, too.
</blockquote>
<p>
Custom routing allows you to define routes specific to your application without having to change the core libraries. In his example, he shows how to set up the routing objects and how to add them to the request's chain.
</p>]]></description>
      <pubDate>Mon, 30 Nov 2009 12:04:28 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matt Curry's Blog: On The Fly Model Chains With CakePHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12364</guid>
      <link>http://www.phpdeveloper.org/news/12364</link>
      <description><![CDATA[<p>
<i>Matt Curry</i> has come back and posted <a href="http://www.pseudocoder.com/archives/2009/04/17/on-the-fly-model-chains-with-cakephp/">yet another method</a> you can use to help speed up your CakePHP applications that need chained methods (as he <a href="http://www.phpdeveloper.org/news/12354">mentioned before</a>) - only loading the parts as they're needed.
</p>
<blockquote>
The smart readers (which is really all of you guys. you're the best) probably realized that there is a lot of overhead in building the chain, especially for apps with lots of interlinked models. Wouldn't it be awesome if Cake only created the pieces of the chain as needed?
</blockquote>
<p>
He's created a sample model to do just that - it removes all model associations previously set (so it doesn't auto-build the chain) and then only adds in the models it needs (as defined in the __loadAssociations array) and then calls the parent constructor to autoload just those. A few benchmarks are tossed in comparing a model with no chains versus one with a varying number (one/nine).
</p>]]></description>
      <pubDate>Fri, 17 Apr 2009 11:13:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ElectricToolBox.com: Method chaining with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11611</guid>
      <link>http://www.phpdeveloper.org/news/11611</link>
      <description><![CDATA[<p>
On the ElectricToolBox.com blog there's <a href="http://www.electrictoolbox.com/php-method-chaining/">a quick post</a> looking at method chaining in a Zend Framework application:
</p>
<blockquote>
Having used the Zend Framework on a couple of projects and spent a lot of time reading the documentation I discovered the use of method chaining. This post looks at how to use method chaining in PHP.
</blockquote>
<p>
His examples include a comparison between a method-chained Zend_Mail example and a non-chained method with each line augmenting the same object over and over. He also includes the simple-as-pie method that lets you use chaining in your own applications - returning the object itself.
</p>]]></description>
      <pubDate>Mon, 22 Dec 2008 12:37:07 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPKitchen: Using Wordpress]]></title>
      <guid>http://www.phpdeveloper.org/news/8770</guid>
      <link>http://www.phpdeveloper.org/news/8770</link>
      <description><![CDATA[<p>
<i>Demian Turner</i> has <a href="http://www.newsgator.com/ngs/subscriber/WebEd2.aspx?fid=128719">passed along</a> an "indepth and informative" comment from the <a href="http://lists.phplondon.org/pipermail/phplondon-discuss/2007-September/thread.html#3763">PHP London mailing list</a> he saw about WordPress involving some of the things that suck about it.
</p>
<blockquote>
We did http://ftalphaville.ft.com using Wordpress, and speaking as someone who's actually had to wade through pretty much the whole codebase, let me tell you it seriously sucks.
</blockquote>
<p>
<a href="http://lists.phplondon.org/pipermail/phplondon-discuss/2007-September/003773.html">Their highlights</a> include messing with the raw POST data to limit access, function calls chained eight long and comments like "This probably isn't needed anymore" all over the place.
</p>]]></description>
      <pubDate>Tue, 02 Oct 2007 15:22:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Introducing the Chain of Responsibility Between PHP Objects]]></title>
      <guid>http://www.phpdeveloper.org/news/6597</guid>
      <link>http://www.phpdeveloper.org/news/6597</link>
      <description><![CDATA[<p>
DevShed is starting off a new series today with <a href="http://www.devshed.com/c/a/PHP/Introducing-the-Chain-of-Responsibility-Between-PHP-Objects/">this first article</a> talking about how to introduce the "chain of responsibility" method in how you use your objects.
</p>
<blockquote>
In this three-part series, I'll show you how to create a chain of responsibility across different classes, which hopefully will give you a better understanding of how this schema can be implemented with PHP. 
</blockquote>
<p>
Since it's just the first part in the esries, they <a href="http://www.devshed.com/c/a/PHP/Introducing-the-Chain-of-Responsibility-Between-PHP-Objects/">start with</a> the whys and hows of the chain of command process before getting on with the actual code. For the foundation, they create some subclasses that will make the parts of the chain. Next up is combining them and, finally, making the "master class" to combine the links of the chain together. They use a "DataServer" example to work with local files.
</p>]]></description>
      <pubDate>Mon, 30 Oct 2006 12:18:00 -0600</pubDate>
    </item>
  </channel>
</rss>
