PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/php/component/link_viewer/link_publication_list_renderer.class.php

https://bitbucket.org/chamilo/chamilo-app-weblcms-link/
PHP | 24 lines | 16 code | 4 blank | 4 comment | 0 complexity | 3d3b537aca23d2e0e5b5ea00c13af91f MD5 | raw file
 1<?php
 2namespace application\weblcms\tool\link;
 3
 4use application\weblcms\ListContentObjectPublicationListRenderer;
 5
 6/**
 7 * $Id: link_publication_list_renderer.class.php 216 2009-11-13 14:08:06Z kariboe $
 8 * @package application.lib.weblcms.tool.link.component.link_viewer
 9 */
10class LinkPublicationListRenderer extends ListContentObjectPublicationListRenderer
11{
12
13    function __construct($browser)
14    {
15        parent :: __construct($browser);
16    }
17
18    function render_title($publication)
19    {
20        $url = $publication->get_content_object()->get_url();
21        return '<a target="about:blank" href="' . htmlentities($url) . '">' . parent :: render_title($publication) . '</a>';
22    }
23}
24?>