You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
702 B
39 lines
702 B
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\CourseBundle\Component\CourseCopy\Resources;
|
|
|
|
/**
|
|
* Class Asset.
|
|
*
|
|
* @package chamilo.backup
|
|
*/
|
|
class Asset extends Resource
|
|
{
|
|
public $title;
|
|
public $path;
|
|
public $file_type;
|
|
|
|
/**
|
|
* Asset constructor.
|
|
*
|
|
* @param int $id
|
|
* @param int $path
|
|
* @param string $title
|
|
*/
|
|
public function __construct($id, $path, $title)
|
|
{
|
|
parent::__construct($path, RESOURCE_ASSET);
|
|
$this->path = $path;
|
|
$this->title = $title;
|
|
}
|
|
|
|
/**
|
|
* Show this document.
|
|
*/
|
|
public function show()
|
|
{
|
|
parent::show();
|
|
echo $this->title;
|
|
}
|
|
}
|
|
|