Наследование: extends ArrayObject
Пример #1
0
 public function action_post_insert_after(Post $post)
 {
     if (Options::get(self::OPTION_ANNOUNCE_POSTS) == 'yes' && $post->statusname == 'published') {
         $params = array('article-author' => $post->author->username, 'article-author-email' => $post->author->email, 'article-title' => $post->title, 'article-content' => $post->content, 'permalink' => $post->permalink);
         try {
             $result = $this->defensio->announce_article($params);
         } catch (Exception $e) {
             EventLog::log($e->getMessage(), 'notice', 'content', 'Defensio');
         }
     }
 }