Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 108... Línea 108...
108
     * @param CacheInterface    $cache    Default cache for the protocol.
108
     * @param CacheInterface    $cache    Default cache for the protocol.
109
     */
109
     */
110
    public static function register(
110
    public static function register(
111
        S3ClientInterface $client,
111
        S3ClientInterface $client,
112
        $protocol = 's3',
112
        $protocol = 's3',
113
        CacheInterface $cache = null,
113
        ?CacheInterface $cache = null,
114
        $v2Existence = false
114
        $v2Existence = false
115
    ) {
115
    ) {
116
        self::$useV2Existence = $v2Existence;
116
        self::$useV2Existence = $v2Existence;
117
        if (in_array($protocol, stream_get_wrappers())) {
117
        if (in_array($protocol, stream_get_wrappers())) {
118
            stream_wrapper_unregister($protocol);
118
            stream_wrapper_unregister($protocol);
Línea 579... Línea 579...
579
    public function stream_cast($cast_as)
579
    public function stream_cast($cast_as)
580
    {
580
    {
581
        return false;
581
        return false;
582
    }
582
    }
Línea -... Línea 583...
-
 
583
 
-
 
584
    public function stream_set_option($option, $arg1, $arg2)
-
 
585
    {
-
 
586
        return false;
-
 
587
    }
-
 
588
 
-
 
589
    public function stream_metadata($path, $option, $value)
-
 
590
    {
-
 
591
        return false;
-
 
592
    }
-
 
593
 
-
 
594
    public function stream_lock($operation)
-
 
595
    {
-
 
596
        trigger_error(
-
 
597
            'stream_lock() is not supported by the Amazon S3 stream wrapper',
-
 
598
            E_USER_WARNING
-
 
599
        );
-
 
600
        return false;
-
 
601
    }
-
 
602
 
-
 
603
    public function stream_truncate($new_size)
-
 
604
    {
-
 
605
        return false;
-
 
606
    }
583
 
607
 
584
    /**
608
    /**
585
     * Validates the provided stream arguments for fopen and returns an array
609
     * Validates the provided stream arguments for fopen and returns an array
586
     * of errors.
610
     * of errors.
587
     */
611
     */