<?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>Sun, 19 May 2013 18:57:22 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: Retrieving Product Attributes from Magento's V2 API]]></title>
      <guid>http://www.phpdeveloper.org/news/14776</guid>
      <link>http://www.phpdeveloper.org/news/14776</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has posted a <a href="http://www.lornajane.net/posts/2010/Retrieving-Product-Attributes-from-Magentos-V2-API">sort of follow-up</a> to her previous post about accessing the Magento A{I to pull information about products from the application. In <a href="http://www.lornajane.net/posts/2010/Retrieving-Product-Attributes-from-Magentos-V2-API">this new post</a> she takes it a step further and shows how to get attributes from those products.
</p>
<blockquote>
I've been working with the API for <a href="http://www.magentocommerce.com/">Magento</a> in recent weeks and I had a bit of a struggle explaining to the V2 API which attributes of a product I wanted to retrieve. Actually I had issues talking to the V2 API at all, but <a href="http://www.lornajane.net/posts/2010/Accessing-the-Magento-V2-API">that's a different post</a> so I'll skate over those for now. Instead I thought I'd share (or rather, record for the next time I have the same problem!) how to specify which attributes about a product to retrieve.
</blockquote>
<p>
She figured out that you could use <a href="http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product#catalog_product.info">the info method</a> for the product_catalog call and specify the attributes you want. Her code example shows how to fetch the title, description, a shorter description and the price of an item.
</p>]]></description>
      <pubDate>Mon, 12 Jul 2010 08:28:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: The Cost of Test Isolation - Follow-Up]]></title>
      <guid>http://www.phpdeveloper.org/news/11774</guid>
      <link>http://www.phpdeveloper.org/news/11774</link>
      <description><![CDATA[<p>
Adding on a bit more to a <a href="http://sebastian-bergmann.de/archives/830-The-Cost-of-Test-Isolation-and-other-PHPUnit-Features.html">previous post</a> of his look at test isolation (ex. global variables from one test do not effect any others') with <a href="http://sebastian-bergmann.de/archives/843-The-Cost-of-Test-Isolation-Follow-Up.html">an update</a> he's made to the PHPUnit code concerning the isolation.
</p>
<blockquote>
Since the previous posting, I have added a <a href="http://www.phpunit.de/manual/3.4/en/fixtures.html#fixtures.global-state">backup/restore mechanism for static attributes of classes</a> to <a href="http://www.phpunit.de/">PHPUnit</a>. This is yet another feature of PHPUnit that makes the testing of code that uses global state (which includes, but is not limited to, <a href="http://sebastian-bergmann.de/archives/797-Global-Variables-and-PHPUnit.html">global and superglobal variables</a> as well as static attributes of classes) easier.
</blockquote>
<p>
Two graphs illustrate the difference - <a href="http://www.flickr.com/photos/sebastian_bergmann/3206494878/">one showing a normal run</a> and <a href="http://www.flickr.com/photos/sebastian_bergmann/3206494876/">another</a> with this new feature in use and showing off the performance increase it can give.
</p>]]></description>
      <pubDate>Tue, 20 Jan 2009 11:11:44 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: What would make template engines actually useful?]]></title>
      <guid>http://www.phpdeveloper.org/news/11762</guid>
      <link>http://www.phpdeveloper.org/news/11762</link>
      <description><![CDATA[<p>
In <a href="http://codeutopia.net/blog/2009/01/19/what-would-make-template-engines-actually-useful/">a recent blog post</a>, <i>Jani Hartikainen</i> looks at a two things that might make templating tools a bit more useful - better than just dropping data into a template.
</p>
<blockquote>
Most template engines simply wrap PHP (or some other language's) syntax into their own syntax, and maybe they look a little bit cleaner when mixed with HTML. Some may even provide useful features like automatic variable escaping to prevent XSS vulnerabilities. But does this actually significantly reduce the amount of code needed to write some common scenarios, or make it easier to read/manage the code?
</blockquote>
<p>
His two things revolve some bits of more advanced functionality - automatic table display (given whatever data) and automatic filtering of the data to make of less hassle on the developer/template designer. He even mentions an interesting idea of putting callbacks or validation checks into the actual XML definition tags for forms.
</p>]]></description>
      <pubDate>Mon, 19 Jan 2009 08:44:10 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP in Action: Get links with XPath]]></title>
      <guid>http://www.phpdeveloper.org/news/11157</guid>
      <link>http://www.phpdeveloper.org/news/11157</link>
      <description><![CDATA[<p>
In response to <a href="http://www.phpro.org/examples/Get-Links-With-DOM.html">this tutorial</a> over on the PHPro.org website a <a href="http://www.reiersol.com/blog/1_php_in_action/archive/162_get_links_with_xpath.html">new post</a> has been made to the PHP in Action blog with an "even cooler" way to do the same sort of DOM fetching - XPath.
</p>
<blockquote>
I'm a little bit surprised at the claim [the tutorial makes] that it's the "correct" (only) way, since there's at least one more that I find even cooler: XPath. Admittedly, it's slower, yet it's a more powerful language. 
</blockquote>
<p>
A <a href="http://www.reiersol.com/blog/1_php_in_action/archive/162_get_links_with_xpath.html">quick example</a> is included, building up from a simple search for anchor tags up to a custom query looking for just the anchor tags with a class of "bookmark".
</p>]]></description>
      <pubDate>Tue, 07 Oct 2008 08:43:33 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Arnold Daniels' Blog: An alternative way of EAV modeling]]></title>
      <guid>http://www.phpdeveloper.org/news/10729</guid>
      <link>http://www.phpdeveloper.org/news/10729</link>
      <description><![CDATA[<p>
<i>Arnold Daniels</i> has <a href="http://blog.adaniels.nl/articles/an-alternative-way-of-eav-modeling/">posted some thoughts</a> on a topics recently featured in a cover story by <a href="http://www.phparch.com">php|architect</a> - EAV modeling.
</p>
<blockquote>
I had seen this db structure in other project, but didn't know that it was called EAV. For those who don't read php|architect, EAV describes a method of saving a large set of attributes, only some of which apply to an individual entity. Normally you would create a table, with a row for each entity and save each attribute in a column. With EAV you save each attribute as a row.
</blockquote>
<p>
He suggests two ways to do the modeling - the more "common" way and an alternative way that splits up the data types to make querying simpler (into scalars and arrays). A sample database structure and example query for it are included.
</p>]]></description>
      <pubDate>Thu, 31 Jul 2008 12:54:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Accessing Attributes and Cloning Nodes with the DOM XML Extension in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9891</guid>
      <link>http://www.phpdeveloper.org/news/9891</link>
      <description><![CDATA[<p>
DevShed continues their series about working with XML in PHP's DOM extension with <a href="http://www.devshed.com/c/a/PHP/Accessing-Attributes-and-Cloning-Nodes-with-the-DOM-XML-Extension-in-PHP-5/">this new tutorial</a> posted today showing how to get at attributes for tags and cloning nodes from others.
</p>
<blockquote>
You've probably realized that the DOM XML library can be pretty useful when working with web documents. However, this extension includes some other methods, which can be utilized to parse attributes of a given XML string, as well as to clone nodes.
</blockquote>
<p>
They show how to use the <a href="http://www.devshed.com/c/a/PHP/Accessing-Attributes-and-Cloning-Nodes-with-the-DOM-XML-Extension-in-PHP-5/1/">getAttributes</a> method, <a href="http://www.devshed.com/c/a/PHP/Accessing-Attributes-and-Cloning-Nodes-with-the-DOM-XML-Extension-in-PHP-5/2/">hasAttribue</a> method and <a href="http://www.devshed.com/c/a/PHP/Accessing-Attributes-and-Cloning-Nodes-with-the-DOM-XML-Extension-in-PHP-5/3/">cloneNode</a> method to work with their XML examples.
</p>]]></description>
      <pubDate>Tue, 01 Apr 2008 15:11:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Inserting Comments and Accessing Nodes with the DOM XML Extension in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9779</guid>
      <link>http://www.phpdeveloper.org/news/9779</link>
      <description><![CDATA[<p>
DevShed continues their series looking at using the DOM extension in PHP5 to work with XML in your application. They've already looked at adding attributes and creating CDATA information in a new DOM document. <a href="http://www.devshed.com/c/a/PHP/Inserting-Comments-and-Accessing-Nodes-with-the-DOM-XML-Extension-in-PHP-5/">This time</a> they build on that and also include new methods - appending comment nodes and getting at XML nodes by their IDs.
</p>
<blockquote>
I'm talking about the DOM XML extension, which allows you to handle XML documents by using the DOM API. Thus, if you're interested in learning how to put this extension to work for you quickly, look no further, because you've come to the right place. [...] In this third installment of the series, I'll be teaching you specifically how to append comment nodes to a given XML string and how to extract certain elements via their IDs.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Inserting-Comments-and-Accessing-Nodes-with-the-DOM-XML-Extension-in-PHP-5/1/">review</a> the method to add attributes and CDATA to an XML document first. Then they cover the other two new topics - <a href="http://www.devshed.com/c/a/PHP/Inserting-Comments-and-Accessing-Nodes-with-the-DOM-XML-Extension-in-PHP-5/2/">appending comment nodes</a> and grabbing nodes <a href="http://www.devshed.com/c/a/PHP/Inserting-Comments-and-Accessing-Nodes-with-the-DOM-XML-Extension-in-PHP-5/3/">by their ID attribute</a>.
</p>]]></description>
      <pubDate>Tue, 11 Mar 2008 15:40:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans's Blog: HTML name attribute deprecated]]></title>
      <guid>http://www.phpdeveloper.org/news/8889</guid>
      <link>http://www.phpdeveloper.org/news/8889</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has <a href="http://derickrethans.nl/html_name_attribute_deprecated.php">pointed out</a> a "gotcha" that was passed along to him (somewhat incorrectly) about the "name" attribute being deprecated in XHTML 1.0.
</p>
<blockquote>
Just now somebody on IRC was claiming that the "name" attribute in HTML - the one that is used to give form input fields a name to be used in $_GET and _$POST in PHP is in fact deprecated. [...] But if you read correctly, it's only for the elements: a, applet, form, frame, iframe, img, and map.
</blockquote>
<p>
For the official information, check out <a href="http://www.w3.org/TR/xhtml1/#h-4.10">the section of the new spec</a> dealing with this transition.
</p>]]></description>
      <pubDate>Tue, 23 Oct 2007 12:52:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christopher Jones' Blog: New PDO_OCI Attributes]]></title>
      <guid>http://www.phpdeveloper.org/news/8684</guid>
      <link>http://www.phpdeveloper.org/news/8684</link>
      <description><![CDATA[<p>
<i>Christopher Jones</i> <a href="http://blogs.oracle.com/opal/2007/09/18#a207">talkes about</a> some updates that he's made to the default PDO functionality of PHP, adding in a few things like pre-fetching and methods to get the details of the database server you're using.
</p>
<blockquote>
After PHP 5.2.4 shipped and a new release cycle began, I merged a couple of enhancements to PDO_OCI attribute handling.  Specifically I added $dbh->getAttribute() support for ATTR_SERVER_VERSION, ATTR_SERVER_INFO, ATTR_CLIENT_VERSION and. ATTR_AUTOCOMMIT.  At the moment these are only available in the PHP snapshots on <a href="http://snaps.php.net/">http://snaps.php.net/</a>. Let me know if there are any issues so they can be resolved before the next PHP release.
</blockquote>
<p>
He gives examples of two things - the pre-fetching functionality, allowing for better optimization for a query, and the transaction management features, making it as simple as a try{} block to test the commit and rollback if needed.
</p>
<p>
He also mentions other properties/attributes included in the new release - ATTR_PERSISTENT, ATTR_TIMEOUT, ATTR_ORACLE_NULLS, ATTR_CASE and ATTR_ERRMODE, ATTR_SERVER_VERSION and ATTR_CLIENT_VERSION (the last two have examples).
</p>]]></description>
      <pubDate>Wed, 19 Sep 2007 09:37:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Builder.com: Dynamic XML document construction with the PHP DOM]]></title>
      <guid>http://www.phpdeveloper.org/news/6863</guid>
      <link>http://www.phpdeveloper.org/news/6863</link>
      <description><![CDATA[<p>
Builder.com as posted <a href="http://builder.com.com/5100-6371_14-6141415.html?part=rss&subj=bldr">a quick tutorial</a> on working with the DOM functionality in PHP to create a dynamic XML document (Doctype and all).
</p>
<blockquote>
Over the course of this article, I'll be introducing you to the main functions in this API, showing you how to programmatically generate a complete well-formed XML document from scratch and save it to disk.
</blockquote>
<p>
They <a href="http://builder.com.com/5100-6371_14-6141415.html?part=rss&subj=bldr">start off</a> with creating the Doctype declaration before actually adding the content into the file (elements and text nodes), adding some attributes to the nodes, putting CDATA blocks inside them, and pushing out the results on the other side to be saved to a local "order.xml" file.
</p>
<p>
You can also <a href="http://downloads.techrepublic.com.com/abstract.aspx?docid=272799">download this article</a> if you'd like to work with it (and its included PHP files) on your own.
</p>]]></description>
      <pubDate>Mon, 11 Dec 2006 11:05:00 -0600</pubDate>
    </item>
  </channel>
</rss>
