mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
26 lines
474 B
PHP
26 lines
474 B
PHP
<?php
|
|
|
|
namespace Kanboard\ExternalLink;
|
|
|
|
use Kanboard\Core\ExternalLink\ExternalLinkInterface;
|
|
|
|
/**
|
|
* Attachment Link
|
|
*
|
|
* @package externalLink
|
|
* @author Frederic Guillot
|
|
*/
|
|
class AttachmentLink extends BaseLink implements ExternalLinkInterface
|
|
{
|
|
/**
|
|
* Get link title
|
|
*
|
|
* @access public
|
|
* @return string
|
|
*/
|
|
public function getTitle()
|
|
{
|
|
$path = parse_url($this->url, PHP_URL_PATH);
|
|
return basename($path);
|
|
}
|
|
}
|