<?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>DevMotion</title>
	<atom:link href="http://www.devmotion.cc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devmotion.cc</link>
	<description>Technologies Services Consulting</description>
	<lastBuildDate>Wed, 27 Oct 2010 12:30:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>National Journal relaunch goes live with DevMotion&#8217;s help</title>
		<link>http://www.devmotion.cc/2010/10/nationaljournal-gone-live-with-devmotion-help/</link>
		<comments>http://www.devmotion.cc/2010/10/nationaljournal-gone-live-with-devmotion-help/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 23:23:55 +0000</pubDate>
		<dc:creator>Bashar</dc:creator>
				<category><![CDATA[Reference]]></category>

		<guid isPermaLink="false">http://www.devmotion.cc/?p=459</guid>
		<description><![CDATA[DevMotion has been quite busy those three last months helping NationalJournal, an Atlantic Media Company publication, switch to a new Content Management System, that will support their new business needs. Along with that a complete re-design of their website has &#8230;]]></description>
			<content:encoded><![CDATA[<p>DevMotion has been quite busy those three last months helping <a href="http://www.nationaljournal.com" target="_blank">NationalJournal</a>, an<a href="http://atlanticmediacompany.com/" target="_blank"> Atlantic Media Company</a> publication, switch to a new Content Management System, that will support their new business needs. Along with that a complete re-design of their website has been performed.</p>
<p>The National Journal Group has changed their online strategy: their three main publications are now integrated in a single website; more free content will be available, mainly breaking news and analysis, while deeper policy analysis will stay behind the paywall. A brand new mobile website is also part of that new offer, along with an iPad application which is still in development but expected soon.</p>
<p>DevMotion helped NJG integrate and customize Nstein&#8217;s WCM, and developped some specialized and key features to support their new needs (to name a few):</p>
<ul>
<li>a paywall system, over which sits an interface layer for the iPad and Iphone applications;</li>
<li>a semantic faceted search module leveraging extracted linguistic meta data;</li>
<li>an import module to ingest on-going feeds (NewsML);</li>
<li>an export module to export / syndicate content to partners;</li>
<li>a user tracking mechanism.</li>
</ul>
<p>You can see the result of all the hard work from everybody involved in the project at <a href="http://www.nationaljournal.com" target="_blank">www.nationaljournal.com</a>.</p>
<div class="aligncenter">
<a href="http://www.devmotion.cc/wp-content/uploads/2010/10/njg-search.png"><img title="Semantic Faceted Search" style="float:left;" src="http://www.devmotion.cc/wp-content/uploads/2010/10/njg-search-150x150.png" alt="" width="150" height="150" /></a><a href="http://www.devmotion.cc/wp-content/uploads/2010/10/national-journal2.png"><img style="float:left;margin-left:20px;" title="National Journal" src="http://www.devmotion.cc/wp-content/uploads/2010/10/national-journal2-150x150.png" alt="" width="150" height="150" /></a><a href="http://www.devmotion.cc/wp-content/uploads/2010/10/njg-mobile.gif"><img style="float:left;margin-left:20px;" title="NJG Iphone / Ipad" src="http://www.devmotion.cc/wp-content/uploads/2010/10/njg-mobile-150x150.gif" alt="" width="150" height="150" /></a>
</div>
<div style="clear:both;margin-bottom:30px;height:30px;">
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.devmotion.cc/2010/10/nationaljournal-gone-live-with-devmotion-help/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Magento: custom options with store-specific title</title>
		<link>http://www.devmotion.cc/2010/09/magento-custom-options-with-store-specific-title/</link>
		<comments>http://www.devmotion.cc/2010/09/magento-custom-options-with-store-specific-title/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 07:11:09 +0000</pubDate>
		<dc:creator>Manuel</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.devmotion.cc/?p=403</guid>
		<description><![CDATA[While working on a Magento project, I was trying to do something that seemed trivial at first, but sadly I found absolutely no documentation about it over the Internet. First part of the problem was documented: I needed to create &#8230;]]></description>
			<content:encoded><![CDATA[<p>While working on a Magento project, I was trying to do something that seemed trivial at first, but sadly I found absolutely no documentation about it over the Internet.</p>
<p>First part of the problem was documented: I needed to create custom options on a product, and I&#8217;ve been able to find a couple of examples. Second part was tricky: I needed to specify a different title for each store the product was related to. For this part, I found almost nothing useful.</p>
<p><span id="more-403"></span>I spent some time reading Magento&#8217;s API documentation (here I&#8217;m talking about PHP API, not the SOAP or XMLRPC API), trying things, var_dumping and print_r-ing objects, and so on. After a couple hours of head scratching, I finally got it working.</p>
<p>In fact, the solution is pretty simple. First, you need to have the ID of the product that will own the option. Either you load an existing product, or you create a new one and then save it (so its ID is generated); that&#8217;s the <em>$product</em> variable. Then let&#8217;s just create the option object, initialize its properties, bind it to its product and save it:</p>
<pre style="padding-left: 30px; margin-bottom: 20px;">$option = Mage::getModel('catalog/product_option');
$opt-&gt;setTitle('Color');
$opt-&gt;setType('field');
$opt-&gt;setPriceType('fixed');
$opt-&gt;setPrice(0);
$opt-&gt;setProductId($product-&gt;getId());
$opt-&gt;save();</pre>
<p>Now you have a new text field option, with its default title being Color. Now let&#8217;s say you have a French store and you need to assign the title <em>Couleur </em>for that store. You simply need to change the option&#8217;s current store ID, set the French title and save:</p>
<pre style="padding-left: 30px; margin-bottom: 20px;">$opt-&gt;setStoreId(Mage::app()-&gt;getStore('french')-&gt;getId());
$opt-&gt;setTitle('Couleur');
$opt-&gt;save();
</pre>
<p>(here I loaded the store ID using the store&#8217;s <em>code </em>property)</p>
<p>Same thing applies for values when using multi-valued options. Here I&#8217;ve got a drop_down option offering various sizes, and I need to add a new size named <em>Very Small</em>. Similar as before, you need to have an existing product and option (<em>$product</em> and <em>$option</em> variables):</p>
<pre style="padding-left: 30px; margin-bottom: 20px;">$value = Mage::getModel('catalog/product_option_value');
$value-&gt;setTitle('Very Small');
$value-&gt;setPriceType('fixed');
$value-&gt;setPrice(0);
$value-&gt;setProductId($product-&gt;getId());
$value-&gt;setOptionId($option-&gt;getId());
$value-&gt;save();
</pre>
<p>Then, let&#8217;s change the value&#8217;s store ID, set the French title <em>Très Petit </em>and save:</p>
<pre style="padding-left: 30px; margin-bottom: 20px;">$value-&gt;setStoreId(Mage::app()-&gt;getStore('french')-&gt;getId());
$value-&gt;setTitle(utf8_encode('Très Petit'));
$value-&gt;save();
</pre>
<p>In case you were wondering: the <em>utf8_encode </em>allows Magento to correctly digest accented characters.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devmotion.cc/2010/09/magento-custom-options-with-store-specific-title/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Annotations with PHP</title>
		<link>http://www.devmotion.cc/2010/08/using-annotations-with-php/</link>
		<comments>http://www.devmotion.cc/2010/08/using-annotations-with-php/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 22:57:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.devmotion.cc/?p=377</guid>
		<description><![CDATA[A while ago, a RFC (Request For Comment) was created by Guilherme Blanco. He proposed extending PHP to support annotations. Annotations are available in different language such as Java, it allows adding metadata to classes, methods, variables, etc. Here is &#8230;]]></description>
			<content:encoded><![CDATA[<p>A while ago, a RFC (Request For Comment) was created by <a href="http://blog.bisna.com/">Guilherme Blanco</a>. He proposed extending PHP to support annotations. Annotations are available in different language such as Java, it allows adding metadata to classes, methods, variables, etc. <span id="more-377"></span></p>
<p>Here is a small transcript of the RFC.</p>
<h3>Why do we need Class Metadata?</h3>
<p>Frameworks in general rely on metadata information in order to correctly work. They can use it for many purposes:</p>
<ul>
<li>phpUnit Providing meta functionality for test cases, examples: @dataProvider for test data iteration, @expectedException for catching exceptions, etc.</li>
<li>phpDoc Providing useful information for API generation, examples: @author, @param, @return, etc.</li>
<li>Doctrine For Object-Relational mapping, examples: @Entity, @OneToOne, @Id, etc.</li>
<li>Zend Framework Server classes Used to automate mappings for XML-RPC, SOAP, etc.</li>
<li>Others One clear thing that comes to my mind is Validation, Functional Behavior injection (which could take advantage of Traits), etc. Also, any Framework could take advantage of it somehow.</li>
</ul>
<p>So, any meta mapping injection could be easily achieved via the implementation of a centralized Annotations support. <em>Source : http://wiki.php.net/rfc/annotations</em></p>
<p>For a full description of the RFC, please go here  : <a href="http://wiki.php.net/rfc/annotations">http://wiki.php.net/rfc/annotations</a></p>
<p>Pierrick Charron (Core PHP Developer and Co-Founder at DevMotion) has worked on a Zend Engine patch to add native Annotation support within PHP.</p>
<p>Patch can be downloaded from here : <a href="http://www.adoy.net/php/Annotations.diff">http://www.adoy.net/php/Annotations.diff</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devmotion.cc/2010/08/using-annotations-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

