Habari\Media::put PHP Метод

put() публичный статический Метод

Store the asset at the specified virtual path
public static put ( MediaAsset $filedata, string $path = null ) : boolean
$filedata MediaAsset The asset to store
$path string The virtual path where the asset will be stored
Результат boolean true on success
    public static function put($filedata, $path = null)
    {
        if (!$path) {
            $path = $filedata->path;
        }
        $silo = Media::get_silo($path, true);
        Plugins::act('media_put_before', $path, $filedata);
        if ($path == '') {
            $result = false;
        } else {
            $result = $silo->silo_put($path, $filedata);
        }
        Plugins::act('media_put_after', $path, $filedata, $result);
        return $result;
    }