Chamilo is a learning management system focused on ease of use and accessibility
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.
chamilo-lms/plugin/zoom/lib/File.php

32 lines
643 B

<?php
/* For licensing terms, see /license.txt */
namespace Chamilo\PluginBundle\Zoom;
use Exception;
class File extends API\RecordingFile
{
/** @var string */
public $formattedFileSize;
/**
* Makes a File out of a RecordingFile.
*
* @param API\RecordingFile $source
*
* @throws Exception
*
* @return static
*/
public static function fromRecordingFile($source)
{
$instance = new static();
self::recursivelyCopyObjectProperties($source, $instance);
$instance->formattedFileSize = format_file_size($instance->file_size);
return $instance;
}
}