<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>A bog about myself</description><title>Catalina Ionescu</title><generator>Tumblr (3.0; @anunturi-10)</generator><link>http://anunturi-10.tumblr.com/</link><item><title>@innovations | Washington Post on news innovation: New on @innovations: Ask the Post</title><description>&lt;a href="http://on.washingtonpost.com/post/10819543558/new-on-innovations-ask-the-post"&gt;@innovations | Washington Post on news innovation: New on @innovations: Ask the Post&lt;/a&gt;: &lt;p&gt;&lt;a class="tumblr_blog" href="http://on.washingtonpost.com/post/10819543558/new-on-innovations-ask-the-post"&gt;washingtonpostinnovations&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Starting today, the &lt;a href="http://on.washingtonpost.com"&gt;@innovations blog&lt;/a&gt; will feature questions and responses from our new &lt;a href="http://askthepost.com/" target="_blank"&gt;Ask The Post&lt;/a&gt; feature on The Washington Post website. We hope the blog will build on the ongoing conversations between the Post newsroom and readers.&lt;/p&gt;
&lt;p&gt;Each day, on Ask the Post we’ll take questions from…&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://anunturi-10.tumblr.com/post/20475393514</link><guid>http://anunturi-10.tumblr.com/post/20475393514</guid><pubDate>Wed, 04 Apr 2012 14:10:10 -0400</pubDate></item><item><title>zvz.ro 2.0
Ne-am gandit ca ar fi cazul sa facem o schimbare...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_m1y775u0mu1rt40xro1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;strong&gt;zvz.ro 2.0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Ne-am gandit ca ar fi cazul sa facem o schimbare designului siteului.&lt;/p&gt;
&lt;p&gt;Ce parere aveti despre noua versiune?&lt;/p&gt;
&lt;p&gt;Daca sunt probleme, nu ezitati sa ni le comunicati, specificand si versiunea de browser pe care o utilizati.&lt;/p&gt;</description><link>http://anunturi-10.tumblr.com/post/20459638413</link><guid>http://anunturi-10.tumblr.com/post/20459638413</guid><pubDate>Wed, 04 Apr 2012 05:18:41 -0400</pubDate></item><item><title>zvz.ro 2.0</title><description>&lt;p&gt;Ne-am gandit ca ar fi cazul sa facem o schimbare designului siteului.&lt;/p&gt;
&lt;p&gt;Ce parere aveti despre noua versiune?&lt;/p&gt;
&lt;p&gt;Daca sunt probleme, nu ezitati sa ni le comunicati, specificand si versiunea de browser pe care o utilizati.&lt;/p&gt;</description><link>http://anunturi-10.tumblr.com/post/20459598363</link><guid>http://anunturi-10.tumblr.com/post/20459598363</guid><pubDate>Wed, 04 Apr 2012 05:16:24 -0400</pubDate></item><item><title>Ce este ACTA</title><description>&lt;a href="http://blog.zvz.ro/acta/"&gt;Ce este ACTA&lt;/a&gt;: &lt;p&gt;&lt;p align="center"&gt;Ce este de fapt ACTA? ACTA este un &lt;em&gt;acord comercial de combatere a contrafacerii între uniunea europeană și statele membre ale acesteia, australia, canada, japonia, republica coreea, statele unite mexicane, regatul maroc, noua zeelandă, republica singapore, confederația elvețiană și statele unite ale americii.&lt;/em&gt;&lt;/p&gt;
&lt;p align="center"&gt;Cam complicat, nu? Teoretic, ACTA trebuie să îi protejeze pe toti oamenii care produc si distribuie legal &lt;strong&gt;Opere&lt;/strong&gt;, &lt;strong&gt;Fonograme, &lt;strong&gt;Programe de Calculator&lt;/strong&gt;, &lt;strong&gt;Videograme, etc.&lt;/strong&gt;&lt;/strong&gt;Până aici nimic în neregulă aş spune eu… Dar problemele şi mai ales nemulţumirile au apărut atunci când am aflat că ni se încalcă oarecum dreptul la viaţă privată.&lt;/p&gt;
&lt;p align="center"&gt;Până în acest moment în România nu s-a oficializat nimic in acest sens.&lt;/p&gt;
&lt;p align="center"&gt;Dar eu stau totuşi si mă gândesc: oare dacă nu ar fi existat suspiciunea (deşi unii spun ca este o certitudine) că ni s-ar încălca dreptul la viată privată, am fi acceptat mai uşor acest acord? Eu cred că nouă de fapt nu ne place că trebuie să plătim licenţe pentru toate programele pe care e avem instalate pe calculatoare şi în nici un caz nu ne place să plătim pentru un CD cu muzică sau un DVD cu un film. “Dar noi nu plătim pentru că nu avem bani, nu pentru că nu ne interesează să fim în legalitate”, nu-i aşa? Sigur că da…. şi dacă vreau să merg la grădina zoologică sar gardul nu trec pe la poartă să cumpăr bilet pentru că nu am destui bani, nu? NU. Pur şi simplu nu mă duc acolo.&lt;/p&gt;
&lt;p align="center"&gt;Ştiu că nu trăim într-o lume perfectă, dar totuşi cred că cel mai bine ar fi dacă &lt;strong&gt;ne-am informa&lt;/strong&gt; cu privire la lucrurile care ne deranjează şi am &lt;strong&gt;decide singuri&lt;/strong&gt; dacă într-adevăr ne supără atât de tare sau nu.&lt;/p&gt;&lt;/p&gt;</description><link>http://anunturi-10.tumblr.com/post/20459572886</link><guid>http://anunturi-10.tumblr.com/post/20459572886</guid><pubDate>Wed, 04 Apr 2012 05:14:00 -0400</pubDate><category>acta</category></item><item><title>"Am o intrebare pentru toti care “stiu” cum se calculeaza PageRank-ul unei pagini: cum se explica..."</title><description>“&lt;p&gt;Am o intrebare pentru toti care “stiu” cum se calculeaza PageRank-ul unei pagini: cum se explica PageRank-ul de 4 al paginii de facebook &lt;a href="http://www.facebook.com/zvz.ro"&gt;http://www.facebook.com/zvz.ro&lt;/a&gt; in conditiile in care toate link-urile catre ea (pe care le-am gasit noi) sunt cu rel=”nofollow”?&lt;/p&gt;

&lt;p&gt;Eu cred ca pentru google, chiar daca nu spune, conteaza si link-urile nofollow; altfel nu se poate explica.&lt;/p&gt;

&lt;p&gt;Apropo, cautarea link:http://www.facebook.com/zvz.ro pe Google nu returneaza niciun rezultat.&lt;/p&gt;”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://blog.zvz.ro/google-pagerank/"&gt;&lt;a href="http://blog.zvz.ro/google-pagerank/"&gt;http://blog.zvz.ro/google-pagerank/&lt;/a&gt;&lt;/a&gt;&lt;/em&gt;</description><link>http://anunturi-10.tumblr.com/post/20459512759</link><guid>http://anunturi-10.tumblr.com/post/20459512759</guid><pubDate>Wed, 04 Apr 2012 05:11:00 -0400</pubDate><category>google</category><category>pagerank</category><category>pr google pr</category><category>facebook</category></item><item><title>Importa anunturi in zvz.ro de la parteneri</title><description>&lt;p&gt;&lt;span&gt;Echipa zvz.ro iti pune la dispozitie un modul care iti publica anunturile in mod automat pe zvz.ro.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Ajutor si conditii de publicare anunturi gratuite&lt;/h2&gt;
&lt;h3&gt;Ajutor&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Adaugarea automata a anunturilor se realizeaza prin descarcarea de catre unul din serverele zvz.ro a unui fisier XML pe care tu il publici pe site-ul tau, la o adresa pe care o comunici echipei zvz.ro. Formatul fisierul xml este similar cu cel generat in aceasta pagina. &lt;/span&gt;&lt;br/&gt;&lt;span&gt;Daca nu te intereseaza ca anunturile tale sa aiba specificate judetul, localitatea, pretul sau alte caracteristici, poti sa ne dai si adresa unui flux RSS precum si categoria unde vrei sa-ti fie importate anunturile. Ambele modalitati, prin fisier XML sau prin fisier RSS, se supun &lt;/span&gt;&lt;span&gt;conditiilor de mai jos&lt;/span&gt;&lt;span&gt;. &lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span&gt;Pentru a adauga automat anunturi in zvz.ro, urmeaza urmatorii pasi: &lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Alege categoria unde vor fi publicate anunturile, din meniul de pe partea stanga a paginii;&lt;/li&gt;
&lt;li&gt;Creaza un sablon de anunt, completand caracteristicile care apar dupa selectarea categoriei;&lt;/li&gt;
&lt;li&gt;Genereaza codul XML care va fi folosit pe post de sablon;&lt;/li&gt;
&lt;li&gt;Analizeaza vizual codul XML, observand ca exista adaugate deja in cod 2 anunturi de test pe baza datelor introduse de tine;&lt;/li&gt;
&lt;li&gt;Copiaza codul XML pe serverul tau, la o locatie accesibila de pe internet de catre serverele zvz.ro;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Comunica echipei zvz.ro&lt;/span&gt; adresa la care este accesibil fisierul XML (ex: &lt;a href="http://www.serverultau.ro/fisier_cu_anunturi.xml"&gt;www.serverultau.ro/fisier_cu_anunturi.xml&lt;/a&gt; sau &lt;a href="http://www.serverultau.ro/fisier_cu_anunturi.php"&gt;www.serverultau.ro/fisier_cu_anunturi.php&lt;/a&gt; );&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;&lt;br/&gt;&lt;br/&gt;&lt;a id="limitari" name="limitari"&gt;&lt;/a&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;Conditii&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Aceste modalitati de publicare automata a anunturilor au urmatoarele limitari/cerinte/conditii: &lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;importul anunturilor este &lt;strong&gt;GRATUIT&lt;/strong&gt; (adica fara bani);&lt;/li&gt;
&lt;li&gt;este necesar sa publici un link catre &lt;a href="http://zvz.ro/"&gt;zvz.ro&lt;/a&gt;, cu textul &lt;strong&gt;anunturi gratuite&lt;/strong&gt;, pe unul din site-urile tale;&lt;br/&gt;de exemplu: &lt;/li&gt;
&lt;li&gt;numarul de anunturi care pot fi publicate pe zi este egal sau mai mic cu pagerank-ul paginii unde ai publicat link-ul catre zvz.ro; deci, daca ai publicat link-ul catre zvz.ro pe un site care are pagerank egal cu 2, atunci se vor publica maxim 2 anunturi pe zi;&lt;/li&gt;
&lt;li&gt;anunturile cu acelas ID unic se republica (vor fi ca noi);&lt;/li&gt;
&lt;li&gt;anunturile vor avea ca proprietar un utilizator creat in prealabil de catre tine, care va avea specificate datele de contact;&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;Vezi acest post si pe &lt;a href="http://anunturi-gratuite-1.blogspot.com/2012/04/importa-anunturi-in-zvzro-de-la.html"&gt;&lt;a href="http://anunturi-gratuite-1.blogspot.com/2012/04/importa-anunturi-in-zvzro-de-la.html"&gt;http://anunturi-gratuite-1.blogspot.com/2012/04/importa-anunturi-in-zvzro-de-la.html&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description><link>http://anunturi-10.tumblr.com/post/20459437141</link><guid>http://anunturi-10.tumblr.com/post/20459437141</guid><pubDate>Wed, 04 Apr 2012 05:07:00 -0400</pubDate><category>anunturi</category><category>gratuite</category><category>anunturi gratuite</category></item><item><title>Anunturi gratuite</title><description>&lt;p&gt;ZVZ iti ofera posibilitatea de a publica anunturi gratuite pentru orasul tau si imprejurimile sale. Vei gasi usor pe ZVZ &lt;a href="http://zvz.ro" title="Anunturi gratuite"&gt;anunturi gratuite&lt;/a&gt; interesante si vei putea intra usor in legatura cu cei care le-au publicat. Pe ZVZ.ro te asteapta locuri de munca, apartamente si camere de inchiriat, masini second-hand si telefoane mobile la preturi mici. Daca vrei sa vinzi ceva vei putea adauga foarte usor anunturi gratuite. Daca vrei sa cumperi ceva aici vei putea gasi produsele care te intereseaza la preturi mai mici decat in orice magazin. Toate aceste anunturi se publica gratuit si fara sa ai nevoie de crearea unui cont de utilizator.&lt;/p&gt;</description><link>http://anunturi-10.tumblr.com/post/20459329538</link><guid>http://anunturi-10.tumblr.com/post/20459329538</guid><pubDate>Wed, 04 Apr 2012 05:00:43 -0400</pubDate><category>anunturi</category><category>anunturi gratuite</category><category>gratuite</category></item><item><title>PHP Traits - Properties</title><description>&lt;p class="para"&gt;Traits can also define properties.&lt;/p&gt;
&lt;div class="example" id="language.oop5.traits.properties.example"&gt;
&lt;p&gt;&lt;strong&gt;Example #11 Defining Properties&lt;/strong&gt;&lt;/p&gt;
&lt;div class="example-contents"&gt;
&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span&gt;&amp;lt;?php&lt;br/&gt;trait PropertiesTrait &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public &lt;/span&gt;&lt;span&gt;$x &lt;/span&gt;&lt;span&gt;= &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;PropertiesExample &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;PropertiesTrait&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$example &lt;/span&gt;&lt;span&gt;= new &lt;/span&gt;&lt;span&gt;PropertiesExample&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$example&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;x&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p class="para"&gt;If a trait defines a property then a class can not define a property with the same name, otherwise an error is issued. It is an &lt;strong&gt;&lt;code&gt;E_STRICT&lt;/code&gt;&lt;/strong&gt; if the class definition is compatible (same visibility and initial value) or fatal error otherwise.&lt;/p&gt;
&lt;div class="example" id="language.oop5.traits.properties.conflicts"&gt;
&lt;p&gt;&lt;strong&gt;Example #12 Conflict Resolution&lt;/strong&gt;&lt;/p&gt;
&lt;div class="example-contents"&gt;
&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span&gt;&amp;lt;?php&lt;br/&gt;trait PropertiesTrait &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public &lt;/span&gt;&lt;span&gt;$same &lt;/span&gt;&lt;span&gt;= &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    public &lt;/span&gt;&lt;span&gt;$different &lt;/span&gt;&lt;span&gt;= &lt;/span&gt;&lt;span&gt;false&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;PropertiesExample &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;PropertiesTrait&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    public &lt;/span&gt;&lt;span&gt;$same &lt;/span&gt;&lt;span&gt;= &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;// Strict Standards&lt;br/&gt;    &lt;/span&gt;&lt;span&gt;public &lt;/span&gt;&lt;span&gt;$different &lt;/span&gt;&lt;span&gt;= &lt;/span&gt;&lt;span&gt;true&lt;/span&gt;&lt;span&gt;; &lt;/span&gt;&lt;span&gt;// Fatal error&lt;br/&gt;&lt;/span&gt;&lt;span&gt;}&lt;br/&gt;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><link>http://anunturi-10.tumblr.com/post/20453890329</link><guid>http://anunturi-10.tumblr.com/post/20453890329</guid><pubDate>Wed, 04 Apr 2012 01:09:39 -0400</pubDate><category>php</category><category>php 5.4.0</category><category>traits</category></item><item><title>PHP Traits - Static Trait Members</title><description>&lt;p class="para"&gt;Static variables can be referred to in trait methods, but cannot be defined by the trait. Traits can, however, define static methods for the exhibiting class.&lt;/p&gt;
&lt;div class="example" id="language.oop5.traits.static.ex1"&gt;
&lt;p&gt;&lt;strong&gt;Example #9 Static Variables&lt;/strong&gt;&lt;/p&gt;
&lt;div class="example-contents"&gt;
&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span&gt;&amp;lt;?php&lt;br/&gt;trait Counter &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;inc&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        static &lt;/span&gt;&lt;span&gt;$c &lt;/span&gt;&lt;span&gt;= &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;        &lt;/span&gt;&lt;span&gt;$c &lt;/span&gt;&lt;span&gt;= &lt;/span&gt;&lt;span&gt;$c &lt;/span&gt;&lt;span&gt;+ &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;"&lt;/span&gt;&lt;span&gt;$c&lt;/span&gt;&lt;span&gt;\n"&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;C1 &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;Counter&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;C2 &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;Counter&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$o &lt;/span&gt;&lt;span&gt;= new &lt;/span&gt;&lt;span&gt;C1&lt;/span&gt;&lt;span&gt;(); &lt;/span&gt;&lt;span&gt;$o&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;inc&lt;/span&gt;&lt;span&gt;(); &lt;/span&gt;&lt;span&gt;// echo 1&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$p &lt;/span&gt;&lt;span&gt;= new &lt;/span&gt;&lt;span&gt;C2&lt;/span&gt;&lt;span&gt;(); &lt;/span&gt;&lt;span&gt;$p&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;inc&lt;/span&gt;&lt;span&gt;(); &lt;/span&gt;&lt;span&gt;// echo 1&lt;br/&gt;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="example" id="language.oop5.traits.static.ex2"&gt;
&lt;p&gt;&lt;strong&gt;Example #10 Static Methods&lt;/strong&gt;&lt;/p&gt;
&lt;div class="example-contents"&gt;
&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span&gt;&amp;lt;?php&lt;br/&gt;trait StaticExample &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public static function &lt;/span&gt;&lt;span&gt;doSomething&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        return &lt;/span&gt;&lt;span&gt;'Doing something'&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;Example &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;StaticExample&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;Example&lt;/span&gt;&lt;span&gt;::&lt;/span&gt;&lt;span&gt;doSomething&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><link>http://anunturi-10.tumblr.com/post/20453866891</link><guid>http://anunturi-10.tumblr.com/post/20453866891</guid><pubDate>Wed, 04 Apr 2012 01:09:00 -0400</pubDate><category>php</category><category>traits</category></item><item><title>PHP Traits - Abstract Trait Members</title><description>&lt;p class="para"&gt;Traits support the use of abstract methods in order to impose requirements upon the exhibiting class.&lt;/p&gt;
&lt;div class="example" id="language.oop5.traits.abstract.ex1"&gt;
&lt;p&gt;&lt;strong&gt;Example #8 Express Requirements by Abstract Methods&lt;/strong&gt;&lt;/p&gt;
&lt;div class="example-contents"&gt;
&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span&gt;&amp;lt;?php&lt;br/&gt;trait Hello &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;sayHelloWorld&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'Hello'&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;$this&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;getWorld&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;    }&lt;br/&gt;    abstract public function &lt;/span&gt;&lt;span&gt;getWorld&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;MyHelloWorld &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    private &lt;/span&gt;&lt;span&gt;$world&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;Hello&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;getWorld&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        return &lt;/span&gt;&lt;span&gt;$this&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;world&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;setWorld&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;$val&lt;/span&gt;&lt;span&gt;) {&lt;br/&gt;        &lt;/span&gt;&lt;span&gt;$this&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;world &lt;/span&gt;&lt;span&gt;= &lt;/span&gt;&lt;span&gt;$val&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><link>http://anunturi-10.tumblr.com/post/20453842814</link><guid>http://anunturi-10.tumblr.com/post/20453842814</guid><pubDate>Wed, 04 Apr 2012 01:08:18 -0400</pubDate><category>php</category><category>php 5.4.0</category><category>traits</category><category>php traits</category><category>abstract</category></item><item><title>PHP Traits - Traits Composed from Traits</title><description>&lt;p class="para"&gt;Just as classes can make use of traits, so can other traits. By using one or more traits in a trait definition, it can be composed partially or entirely of the members defined in those other traits.&lt;/p&gt;
&lt;div class="example" id="language.oop5.traits.composition.ex1"&gt;
&lt;p&gt;&lt;strong&gt;Example #7 Traits Composed from Traits&lt;/strong&gt;&lt;/p&gt;
&lt;div class="example-contents"&gt;
&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span&gt;&amp;lt;?php&lt;br/&gt;trait Hello &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;sayHello&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'Hello '&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;trait World &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;sayWorld&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'World!'&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;trait HelloWorld &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;Hello&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;World&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;MyHelloWorld &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;HelloWorld&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$o &lt;/span&gt;&lt;span&gt;= new &lt;/span&gt;&lt;span&gt;MyHelloWorld&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$o&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;sayHello&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$o&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;sayWorld&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="example-contents"&gt;
&lt;p&gt;Exemplul de mai sus va afișa:&lt;/p&gt;
&lt;/div&gt;
&lt;div class="example-contents screen"&gt;
&lt;div class="cdata"&gt;
&lt;pre&gt;Hello World!&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><link>http://anunturi-10.tumblr.com/post/20453802940</link><guid>http://anunturi-10.tumblr.com/post/20453802940</guid><pubDate>Wed, 04 Apr 2012 01:07:12 -0400</pubDate><category>php</category><category>php 5.4.0</category><category>traits</category><category>php traits</category><category>Changing Method Visibility</category></item><item><title>PHP Traits - Changing Method Visibility</title><description>&lt;p class="para"&gt;Using the &lt;em&gt;as&lt;/em&gt; syntax, one can also adjust the visibility of the method in the exhibiting class.&lt;/p&gt;
&lt;div class="example" id="language.oop5.traits.visibility.ex1"&gt;
&lt;p&gt;&lt;strong&gt;Example #6 Changing Method Visibility&lt;/strong&gt;&lt;/p&gt;
&lt;div class="example-contents"&gt;
&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span&gt;&amp;lt;?php&lt;br/&gt;trait HelloWorld &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;sayHello&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'Hello World!'&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;// Change visibility of sayHello&lt;br/&gt;&lt;/span&gt;&lt;span&gt;class &lt;/span&gt;&lt;span&gt;MyClass1 &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;HelloWorld &lt;/span&gt;&lt;span&gt;{ &lt;/span&gt;&lt;span&gt;sayHello &lt;/span&gt;&lt;span&gt;as protected; }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;// Alias method with changed visibility&lt;br/&gt;// sayHello visibility not changed&lt;br/&gt;&lt;/span&gt;&lt;span&gt;class &lt;/span&gt;&lt;span&gt;MyClass2 &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;HelloWorld &lt;/span&gt;&lt;span&gt;{ &lt;/span&gt;&lt;span&gt;sayHello &lt;/span&gt;&lt;span&gt;as private &lt;/span&gt;&lt;span&gt;myPrivateHello&lt;/span&gt;&lt;span&gt;; }&lt;br/&gt;}&lt;br/&gt;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><link>http://anunturi-10.tumblr.com/post/20453750378</link><guid>http://anunturi-10.tumblr.com/post/20453750378</guid><pubDate>Wed, 04 Apr 2012 01:05:46 -0400</pubDate><category>php</category><category>php 5.4.0</category><category>traits</category><category>php traits</category><category>Changing Method Visibility</category></item><item><title>PHP Traits - Multiple Traits</title><description>&lt;p class="para"&gt;Multiple Traits can be inserted into a class by listing them in the use statement, separated by commas.&lt;/p&gt;
&lt;div class="example" id="language.oop5.traits.multiple.ex1"&gt;
&lt;p&gt;&lt;strong&gt;Example #4 Multiple Traits Usage&lt;/strong&gt;&lt;/p&gt;
&lt;div class="example-contents"&gt;
&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span&gt;&amp;lt;?php&lt;br/&gt;trait Hello &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;sayHello&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'Hello '&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;trait World &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;sayWorld&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'World'&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;MyHelloWorld &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;Hello&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;World&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;sayExclamationMark&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'!'&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$o &lt;/span&gt;&lt;span&gt;= new &lt;/span&gt;&lt;span&gt;MyHelloWorld&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$o&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;sayHello&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$o&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;sayWorld&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$o&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;sayExclamationMark&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="example-contents"&gt;
&lt;p&gt;Exemplul de mai sus va afișa:&lt;/p&gt;
&lt;/div&gt;
&lt;div class="example-contents screen"&gt;
&lt;div class="cdata"&gt;
&lt;pre&gt;Hello World!&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><link>http://anunturi-10.tumblr.com/post/20453618152</link><guid>http://anunturi-10.tumblr.com/post/20453618152</guid><pubDate>Wed, 04 Apr 2012 01:02:08 -0400</pubDate><category>php</category><category>php 5.4.0</category><category>traits</category><category>multiple traits</category></item><item><title>PHP Traits - Conflict Resolution</title><description>&lt;p class="para"&gt;If two Traits insert a method with the same name, a fatal error is produced, if the conflict is not explicitly resolved.&lt;/p&gt;
&lt;p class="para"&gt;To resolve naming conflicts between Traits used in the same class, the &lt;em&gt;insteadof&lt;/em&gt; operator needs to be used to chose exactly one of the conflicting methods.&lt;/p&gt;
&lt;p class="para"&gt;Since this only allows one to exclude methods, the &lt;em&gt;as&lt;/em&gt; operator can be used to allow the inclusion of one of the conflicting methods under another name.&lt;/p&gt;
&lt;div class="example" id="language.oop5.traits.conflict.ex1"&gt;
&lt;p&gt;&lt;strong&gt;Example #5 Conflict Resolution&lt;/strong&gt;&lt;/p&gt;
&lt;div class="example-contents"&gt;
&lt;p&gt;In this example, Talker uses the traits A and B. Since A and B have conflicting methods, it defines to use the variant of smallTalk from trait B, and the variant of bigTalk from trait A.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="example-contents"&gt;
&lt;p&gt;The Aliased_Talker makes use of the &lt;em&gt;as&lt;/em&gt; operator to be able to use B&amp;#8217;s bigTalk implementation under an additional alias &lt;em&gt;talk&lt;/em&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="example-contents"&gt;
&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span&gt;&amp;lt;?php&lt;br/&gt;trait A &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;smallTalk&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'a'&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;bigTalk&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'A'&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;trait B &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;smallTalk&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'b'&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;bigTalk&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'B'&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;Talker &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;A&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;B &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;        &lt;/span&gt;&lt;span&gt;B&lt;/span&gt;&lt;span&gt;::&lt;/span&gt;&lt;span&gt;smallTalk insteadof A&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;        &lt;/span&gt;&lt;span&gt;A&lt;/span&gt;&lt;span&gt;::&lt;/span&gt;&lt;span&gt;bigTalk insteadof B&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;Aliased_Talker &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;A&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;B &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;        &lt;/span&gt;&lt;span&gt;B&lt;/span&gt;&lt;span&gt;::&lt;/span&gt;&lt;span&gt;smallTalk insteadof A&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;        &lt;/span&gt;&lt;span&gt;A&lt;/span&gt;&lt;span&gt;::&lt;/span&gt;&lt;span&gt;bigTalk insteadof B&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;        &lt;/span&gt;&lt;span&gt;B&lt;/span&gt;&lt;span&gt;::&lt;/span&gt;&lt;span&gt;bigTalk &lt;/span&gt;&lt;span&gt;as &lt;/span&gt;&lt;span&gt;talk&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><link>http://anunturi-10.tumblr.com/post/20453649989</link><guid>http://anunturi-10.tumblr.com/post/20453649989</guid><pubDate>Wed, 04 Apr 2012 01:02:00 -0400</pubDate><category>php</category><category>php 5.4.0</category><category>php traits</category><category>traits</category></item><item><title>PHP Traits - Precedence</title><description>&lt;h3 class="title"&gt;Precedence&lt;/h3&gt;
&lt;p class="para"&gt;An inherited member from a base class is overridden by a member inserted by a Trait. The precedence order is that members from the current class override Trait methods, which in return override inherited methods.&lt;/p&gt;
&lt;div class="example" id="language.oop5.traits.precedence.examples.ex1"&gt;
&lt;p&gt;&lt;strong&gt;Example #2 Precedence Order Example&lt;/strong&gt;&lt;/p&gt;
&lt;div class="example-contents"&gt;
&lt;p&gt;An inherited method from a base class is overridden by the method inserted into MyHelloWorld from the SayWorld Trait. The behavior is the same for methods defined in the MyHelloWorld class. The precedence order is that methods from the current class override Trait methods, which in turn override methods from the base class.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="example-contents"&gt;
&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span&gt;&amp;lt;?php&lt;br/&gt;&lt;/span&gt;&lt;span&gt;class &lt;/span&gt;&lt;span&gt;Base &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;sayHello&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'Hello '&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;trait SayWorld &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;sayHello&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        &lt;/span&gt;&lt;span&gt;parent&lt;/span&gt;&lt;span&gt;::&lt;/span&gt;&lt;span&gt;sayHello&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'World!'&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;MyHelloWorld &lt;/span&gt;&lt;span&gt;extends &lt;/span&gt;&lt;span&gt;Base &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;SayWorld&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$o &lt;/span&gt;&lt;span&gt;= new &lt;/span&gt;&lt;span&gt;MyHelloWorld&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$o&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;sayHello&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="example-contents"&gt;
&lt;p&gt;Exemplul de mai sus va afișa:&lt;/p&gt;
&lt;/div&gt;
&lt;div class="example-contents screen"&gt;
&lt;div class="cdata"&gt;
&lt;pre&gt;Hello World!&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;xample #3 Alternate Precedence Order Example&lt;/strong&gt;&lt;/p&gt;
&lt;div class="example-contents"&gt;
&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span&gt;&amp;lt;?php&lt;br/&gt;trait HelloWorld &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;sayHello&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'Hello World!'&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;TheWorldIsNotEnough &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;HelloWorld&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    public function &lt;/span&gt;&lt;span&gt;sayHello&lt;/span&gt;&lt;span&gt;() {&lt;br/&gt;        echo &lt;/span&gt;&lt;span&gt;'Hello Universe!'&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    }&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$o &lt;/span&gt;&lt;span&gt;= new &lt;/span&gt;&lt;span&gt;TheWorldIsNotEnough&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$o&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;sayHello&lt;/span&gt;&lt;span&gt;();&lt;br/&gt;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="example-contents"&gt;
&lt;p&gt;Exemplul de mai sus va afișa:&lt;/p&gt;
&lt;/div&gt;
&lt;div class="example-contents screen"&gt;
&lt;div class="cdata"&gt;
&lt;pre&gt;Hello Universe!&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><link>http://anunturi-10.tumblr.com/post/20453549528</link><guid>http://anunturi-10.tumblr.com/post/20453549528</guid><pubDate>Wed, 04 Apr 2012 01:00:00 -0400</pubDate><category>php</category><category>php 5.4.0</category><category>php traits</category><category>traits</category></item><item><title>Traits</title><description>&lt;p&gt;&lt;strong&gt;PHP 5.4.0 introduce a new concept &lt;a href="http://php.net/traits" title="php traits"&gt;TRAITS&lt;/a&gt;:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As of PHP 5.4.0, PHP implements a method of &lt;strong&gt;code reuse&lt;/strong&gt; called Traits.&lt;/span&gt;&lt;/p&gt;
&lt;p class="para"&gt;Traits is a mechanism for code reuse in single inheritance languages such as PHP. A Trait is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies. The semantics of the combination of Traits and classes is defined in a way which reduces complexity, and avoids the typical problems associated with multiple inheritance and Mixins.&lt;/p&gt;
&lt;p class="para"&gt;A Trait is similar to a class, but only intended to group functionality in a fine-grained and consistent way. It is not possible to instantiate a Trait on its own. It is an addition to traditional inheritance and enables horizontal composition of behavior; that is, the application of class members without requiring inheritance.&lt;/p&gt;
&lt;div class="example" id="language.oop5.traits.basicexample"&gt;
&lt;p&gt;&lt;strong&gt;Example #1 Trait example&lt;/strong&gt;&lt;/p&gt;
&lt;div class="example-contents"&gt;
&lt;div class="phpcode"&gt;&lt;code&gt;&lt;span&gt;&amp;lt;?php&lt;br/&gt;trait ezcReflectionReturnInfo &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    function &lt;/span&gt;&lt;span&gt;getReturnType&lt;/span&gt;&lt;span&gt;() { &lt;/span&gt;&lt;span&gt;/*1*/ &lt;/span&gt;&lt;span&gt;}&lt;br/&gt;    function &lt;/span&gt;&lt;span&gt;getReturnDescription&lt;/span&gt;&lt;span&gt;() { &lt;/span&gt;&lt;span&gt;/*2*/ &lt;/span&gt;&lt;span&gt;}&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;ezcReflectionMethod &lt;/span&gt;&lt;span&gt;extends &lt;/span&gt;&lt;span&gt;ReflectionMethod &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;ezcReflectionReturnInfo&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    &lt;/span&gt;&lt;span&gt;/* ... */&lt;br/&gt;&lt;/span&gt;&lt;span&gt;}&lt;br/&gt;&lt;br/&gt;class &lt;/span&gt;&lt;span&gt;ezcReflectionFunction &lt;/span&gt;&lt;span&gt;extends &lt;/span&gt;&lt;span&gt;ReflectionFunction &lt;/span&gt;&lt;span&gt;{&lt;br/&gt;    use &lt;/span&gt;&lt;span&gt;ezcReflectionReturnInfo&lt;/span&gt;&lt;span&gt;;&lt;br/&gt;    &lt;/span&gt;&lt;span&gt;/* ... */&lt;br/&gt;&lt;/span&gt;&lt;span&gt;}&lt;br/&gt;&lt;/span&gt;&lt;span&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><link>http://anunturi-10.tumblr.com/post/20453484669</link><guid>http://anunturi-10.tumblr.com/post/20453484669</guid><pubDate>Wed, 04 Apr 2012 00:58:00 -0400</pubDate><category>php</category><category>php 5.4.0</category><category>php traits</category><category>traits</category></item><item><title>PHP migrates to Git</title><description>&lt;p&gt;&lt;strong&gt;The migration of the PHP source code from Subversion to Git is complete&lt;/strong&gt;. You can clone or fork the source from our &lt;a href="https://github.com/php/php-src"&gt;GitHub mirror&lt;/a&gt;, and we also now support pull requests made via GitHub. The source is also available via &lt;a href="http://git.php.net/"&gt;git.php.net&lt;/a&gt;, and full instructions on cloning the php-src tree can be found at &lt;a href="http://php.net/git"&gt;php.net/git&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;One immediate benefit is that future PHP release tags will be signed by the PHP development team. We will be releasing GPG keys for verification purposes in the next few days.&lt;/p&gt;
&lt;p&gt;More information on the migration and the new workflow can be found at the &lt;a href="https://wiki.php.net/vcs/gitfaq"&gt;Moving to Git FAQ&lt;/a&gt; on the PHP Wiki.&lt;/p&gt;
&lt;p&gt;Please note that the PHP manual, including translations, continues to be hosted in Subversion for the time being and will be migrated to Git at a later date.&lt;/p&gt;
&lt;p&gt;Many thanks to David Soria Parra for his hard work on making the conversion to Git a reality, and to Alexander Moskaliov, Florian Anderiasch and Johannes Schlüter for their work on the scripts required to support the conversion. Let the forking begin!&lt;/p&gt;</description><link>http://anunturi-10.tumblr.com/post/20453224579</link><guid>http://anunturi-10.tumblr.com/post/20453224579</guid><pubDate>Wed, 04 Apr 2012 00:51:00 -0400</pubDate><category>php</category><category>php 5.4.0</category><category>php traits</category><category>traits</category></item><item><title>Antitrust+?</title><description>&lt;p&gt;&lt;a class="tumblr_blog" href="http://parislemon.com/post/15627530949/antitrust"&gt;parislemon&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Given &lt;a href="http://parislemon.com/post/15604811641/why-i-hate-android"&gt;my post last night&lt;/a&gt;, this will probably sound like piling on. But I’m sorry, it’s the first thing that comes to mind. I don’t see how it can’t.&lt;/p&gt;
&lt;p&gt;How on Earth is Google going to avoid antitrust inquiries with &lt;a href="http://googleblog.blogspot.com/2012/01/search-plus-your-world.html"&gt;their new Search+ features announced today&lt;/a&gt;? If Facebook, Twitter, etc, have any decent presence in DC, the ball began rolling a few hours ago.&lt;/p&gt;
&lt;p&gt;This is the type of case that Senators die for. Google wrapped it in a bow and placed it in one of their laps.&lt;/p&gt;
&lt;p&gt;Most of the broader antitrust concerns against Google are bullshit in my opinion. You can argue that they have a monopoly on search, but it’s a natural one. They’ve earned it. They’re simply better at search than their competitors. This has always been true. It remains true.&lt;/p&gt;
&lt;p&gt;But when they use that natural monopoly to start pushing into other verticals, things get gray. Travel, restaurant reviews, etc, etc. We see more of it each year. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://parislemon.com/post/15627530949/antitrust"&gt;Read More&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://anunturi-10.tumblr.com/post/20420417072</link><guid>http://anunturi-10.tumblr.com/post/20420417072</guid><pubDate>Tue, 03 Apr 2012 15:37:13 -0400</pubDate></item><item><title>ruineshumaines:

Busch Gardens welcomed its newest resident...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_m1ww6avoY61qan19ko1_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://25.media.tumblr.com/tumblr_m1ww6avoY61qan19ko2_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/tumblr_m1ww6avoY61qan19ko3_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;p&gt;&lt;a class="tumblr_blog" href="http://ruineshumaines.tumblr.com/post/20412325778/busch-gardens-welcomed-its-newest-resident-earlier"&gt;ruineshumaines&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://buschgardens.com/bg/" target="_self"&gt;Busch Gardens&lt;/a&gt; welcomed its newest resident earlier this week: an adorable Aardvark born Monday, March 26. The healthy baby weighs about 4.8 pounds and is expected to grow to more than 120 lbs. within its first year.&lt;/p&gt;
&lt;p&gt;It is currently living behind the scenes at Jambo Junction – located in the Nairobi area of the park – and is receiving care from members of the animal care team. The baby will join mom “Izzy” and dad “Friz” in the upcoming weeks and will be an Animal Ambassador for the park, along with its older brother “Zawadi,” who will be &lt;a href="http://www.zooborns.com/zooborns/2011/04/little-aardvark-makes-big-debut-at-busch-gardens.html" target="_self"&gt;a year old&lt;/a&gt; on April 10.&lt;/p&gt;
&lt;p&gt;There are fewer than 40 aardvarks in zoos in North America. They are solitary by nature, and Aardvark births are not common.  (&lt;a href="http://www.zooborns.com/zooborns/2012/03/second-baby-aardvark-for-busch-gardens.html"&gt;via&lt;/a&gt;)&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://anunturi-10.tumblr.com/post/20420194980</link><guid>http://anunturi-10.tumblr.com/post/20420194980</guid><pubDate>Tue, 03 Apr 2012 15:32:49 -0400</pubDate></item><item><title>betashop: Fab's Black Friday - Cyber Monday</title><description>&lt;a href="http://betashop.com/post/13497486478/fabs-black-friday-cyber-monday"&gt;betashop: Fab's Black Friday - Cyber Monday&lt;/a&gt;: &lt;p&gt;&lt;a class="tumblr_blog" href="http://betashop.com/post/13497486478/fabs-black-friday-cyber-monday"&gt;betashop&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Here’s some more insight into what Black Friday - Cyber Monday meant for &lt;a href="http://fab.com" target="_blank"&gt;Fab.com&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Fab.com did more than $1.1 million in sales over the 4 day period.&lt;br/&gt;&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;Our users placed more than 18,000 orders.&lt;br/&gt;&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;Nearly half of all orders were from first-time Fab purchasers.&lt;br/&gt;&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;20% of sales was from users of…&lt;/li&gt;
&lt;/ul&gt;&lt;/blockquote&gt;</description><link>http://anunturi-10.tumblr.com/post/20420126381</link><guid>http://anunturi-10.tumblr.com/post/20420126381</guid><pubDate>Tue, 03 Apr 2012 15:31:24 -0400</pubDate></item></channel></rss>
