$post->setDraft(false); $post->setPublic(true); $post->setCreated(new DateTime('2015-12-07 13:00', new DateTimezone('America/Chicago'))); $post->setUpdated(new DateTime('2015-12-07 13:00', new DateTimezone('America/Chicago'))); $body = <<<'EOS' The Zend Framework community is pleased to announce the immediate availability of Expressive 1.0.0rc3! You can install it using [Composer](https://getcomposer.org), using the `create-project` command: ```bash $ composer create-project zendframework/zend-expressive-skeleton:1.0.0rc3@rc expressive ``` If you're already using Expressive, read below for how to update your application! EOS; $post->setBody($markdown->convertToHtml($body)); $extended = <<<'EOC' ## Changes in RC3 RC3 shows a number of improvements, including a number of *new components* created in order to improve interoperability with other [PSR-7](http://www.php-fig.org/psr/psr-7/) middleware solutions. ### New Components First, we split our routing and templating subcomponents into their own repositories and packages: - [zendframework/zend-expressive-router](https://github.com/zendframework/zend-expressive-router) - [zendframework/zend-expressive-template](https://github.com/zendframework/zend-expressive-template)
</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> </li> </ul> EOS; $post->setBody($body); $extended = <<<'EOC' <h2>Fixes</h2> <p> The primary rationale for the release was a problem introduced by a bugfix in 1.12.10 with regards to the <code>ViewRenderer</code> action helper. The fix was incorrectly resolving the controller name, which led to problems primarily when using a custom dispatcher with your application. 1.12.11 introduces a proper fix that addresses the original issue, as well as the problem it introduced. </p> <p> For the full list of changes, visit the changelog: </p>
<?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;