/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
  2. namespace application\weblcms\tool\link;
  3. use application\weblcms\ListContentObjectPublicationListRenderer;
  4. /**
  5. * $Id: link_publication_list_renderer.class.php 216 2009-11-13 14:08:06Z kariboe $
  6. * @package application.lib.weblcms.tool.link.component.link_viewer
  7. */
  8. class LinkPublicationListRenderer extends ListContentObjectPublicationListRenderer
  9. {
  10. function __construct($browser)
  11. {
  12. parent :: __construct($browser);
  13. }
  14. function render_title($publication)
  15. {
  16. $url = $publication->get_content_object()->get_url();
  17. return '<a target="about:blank" href="' . htmlentities($url) . '">' . parent :: render_title($publication) . '</a>';
  18. }
  19. }
  20. ?>