/** * Static method for formatting results * * @param object $row Database row * @return string HTML */ public static function out($row) { include_once PATH_CORE . DS . 'components' . DS . 'com_blog' . DS . 'models' . DS . 'entry.php'; $row->scope = $row->rcount; $row->scope_id = $row->data2; $row->content = $row->ftext; $view = new \Hubzero\Plugin\View(array('folder' => 'tags', 'element' => 'blogs', 'name' => 'result')); $view->entry = \Components\Blog\Models\Entry::blank(); $view->entry->set(get_object_vars($row)); return $view->loadTemplate(); }