<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('matthew');
$author->setName("Matthew Weier O'Phinney");
$author->setEmail('*****@*****.**');
$author->setUrl('http://mwop.net/');
$post = new EntryEntity();
$post->setTitle('Zend Framework 1.12.11 Released!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2015-02-11 11:00', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2015-02-11 11:00', new DateTimezone('America/Chicago')));
$body = <<<'EOS'
<p>
    The Zend Framework community is pleased to announce the immediate availability
    of:
</p>

<ul>
    <li>Zend Framework <strong>1.12.11</strong></li>
</ul>

<p>You can download Zend Framework at:</p>

<ul>
    <li>
        <a href="/downloads/latest#ZF1">http://framework.zend.com/downloads/latest#ZF1</a>
Beispiel #2
0
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$entry = new EntryEntity();
$author = new AuthorEntity();
$author->fromArray(array('id' => 'yourusername', 'name' => 'Your Full Name', 'email' => '*****@*****.**', 'url' => 'http://your.tld/'));
$entry->setId('this-is-the-stub-used-in-the-uri-and-should-be-unique');
$entry->setTitle('New site!');
$entry->setAuthor($author);
$entry->setDraft(false);
$entry->setPublic(true);
$entry->setCreated(1300744335);
$entry->setUpdated(1301034313);
$entry->setTimezone('America/New_York');
$entry->setTags(array('php', 'personal'));
$body = <<<'EOT'
<p>
    This is the principal body of the post, and will be shown everywhere.
</p>
EOT;
$entry->setBody($body);
$extended = <<<'EOT'
This is the extended portion of the entry, and is only shown in the main entry 
views.
EOT;
$entry->setExtended($extended);
return $entry;
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('robertbasic');
$author->setName("Robert Basic");
$author->setEmail('*****@*****.**');
$author->setUrl('http://robertbasic.com/');
$post = new EntryEntity();
$post->setId('2013-03-28-help-us-improve-the-documentation');
$post->setTitle('Help us improve the documentation!');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2013-03-28 10:15', new DateTimezone('Europe/Belgrade')));
$post->setUpdated(new DateTime('2013-03-28 10:15', new DateTimezone('Europe/Belgrade')));
$body = <<<'EOS'
<p>
    A piece of software is only as good as its documentation. The Zend 
    Framework team and a dozen or so contributors are working hard to 
    improve the Zend Framework 2 documentation, but we still want <em>you</em> 
    to help us improve it even more. Any kind of help is welcome and greatly 
    appreciated.
</p>

<p>
    First of all, you don't have to have a major in English literature to help 
    us with the documentation. We, the contributors, come from all over the 
    world and many of us use English as a second &mdash; or even third! &mdash; 
    language, but that does not stop us from trying to improve the docs. Neither 
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('ralphschindler');
$author->setName('Ralph Schindler');
$author->setEmail('*****@*****.**');
$author->setUrl('http://ralphschindler.com/');
$post = new EntryEntity();
$post->setTitle('Zend\\Db in ZF 2.1');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2013-02-01 11:00', new DateTimezone('America/Chicago')));
$post->setUpdated(new DateTime('2013-02-01 11:00', new DateTimezone('America/Chicago')));
$body = <<<'EOS'

<p>
    <code>Zend\Db</code> just got a little better with the release of Zend 
    Framework 2.1.  All the cool things you could do on Mysql, SQLite, 
    Postgresql and SQL Server can now be done on DB2 and Oracle.  In addition, 
    a number of additions were brought into the <code>Zend\Db\Sql\Select</code> object as 
    well.
</p>

EOS;
$post->setBody($body);
$extended = <<<'EOC'

<h3>Connecting to DB2 and Oracle</h3>
<?php

use PhlyBlog\AuthorEntity;
use PhlyBlog\EntryEntity;
$author = new AuthorEntity();
$author->setId('ezimuel');
$author->setName("Enrico Zimuel");
$author->setEmail('*****@*****.**');
$author->setUrl('http://www.zimuel.it/');
$post = new EntryEntity();
$post->setTitle('2011-08-19 Dev status update');
$post->setAuthor($author);
$post->setDraft(false);
$post->setPublic(true);
$post->setCreated(new DateTime('2011-08-19 12:32', new DateTimezone('Europe/Rome')));
$post->setUpdated(new DateTime('2011-08-19 12:32', new DateTimezone('Europe/Rome')));
$body = <<<'EOS'
<p>
    The first weekly status update about the development of ZF2.
</p>
EOS;
$post->setBody($body);
$extended = <<<'EOC'
<h2>Community Initiatives</h2>

<p>
    Obviously, community interaction has exploded. Since last week, we've had
    almost 400 messages in the <a
        href="http://zend-framework-community.634137.n4.nabble.com/ZF-Contributor-f680267.html">zf-contributors
        mailing list</a>, an IRC meeting, and the start of a dedicated "ZF2"
    area of the main website (if you're reading this, you're in it).