Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 595... Línea 595...
595
     *
595
     *
596
     * @return bool
596
     * @return bool
597
     */
597
     */
598
    public function requires_form_features(): void {
598
    public function requires_form_features(): void {
599
        if (!$this->supports_form_features()) {
599
        if (!$this->supports_form_features()) {
600
            throw new \coding_exception('Form features are not supported by the provider');
600
            throw new \coding_exception('Form features are not supported by the provider ' . get_class($this->provider));
601
        }
601
        }
602
    }
602
    }
Línea 603... Línea 603...
603
 
603
 
604
    /**
604
    /**
Línea 613... Línea 613...
613
    /**
613
    /**
614
     * Get communication instance id.
614
     * Get communication instance id.
615
     */
615
     */
616
    public function require_user_features(): void {
616
    public function require_user_features(): void {
617
        if (!$this->supports_user_features()) {
617
        if (!$this->supports_user_features()) {
618
            throw new \coding_exception('User features are not supported by the provider');
618
            throw new \coding_exception('User features are not supported by the provider ' . get_class($this->provider));
619
        }
619
        }
620
    }
620
    }
Línea 621... Línea 621...
621
 
621
 
622
    /**
622
    /**
Línea 640... Línea 640...
640
    /**
640
    /**
641
     * Get communication instance id.
641
     * Get communication instance id.
642
     */
642
     */
643
    public function require_room_features(): void {
643
    public function require_room_features(): void {
644
        if (!$this->supports_room_features()) {
644
        if (!$this->supports_room_features()) {
645
            throw new \coding_exception('room features are not supported by the provider');
645
            throw new \coding_exception('room features are not supported by the provider ' . get_class($this->provider));
646
        }
646
        }
647
    }
647
    }
Línea 648... Línea 648...
648
 
648
 
649
    /**
649
    /**
650
     * Get communication instance id.
650
     * Get communication instance id.
651
     */
651
     */
652
    public function require_room_user_features(): void {
652
    public function require_room_user_features(): void {
653
        if (!$this->supports_room_user_features()) {
653
        if (!$this->supports_room_user_features()) {
654
            throw new \coding_exception('room features are not supported by the provider');
654
            throw new \coding_exception('room user features are not supported by the provider ' . get_class($this->provider));
655
        }
655
        }
Línea 656... Línea 656...
656
    }
656
    }
657
 
657
 
Línea 667... Línea 667...
667
    /**
667
    /**
668
     * Check if the provider supports sync features when required.
668
     * Check if the provider supports sync features when required.
669
     */
669
     */
670
    public function require_sync_provider_features(): void {
670
    public function require_sync_provider_features(): void {
671
        if (!$this->supports_sync_provider_features()) {
671
        if (!$this->supports_sync_provider_features()) {
672
            throw new \coding_exception('sync features are not supported by the provider');
672
            throw new \coding_exception('sync features are not supported by the provider ' . get_class($this->provider));
673
        }
673
        }
674
    }
674
    }
Línea 675... Línea 675...
675
 
675
 
676
    /**
676
    /**