Skip to content
Snippets Groups Projects
Select Git revision
  • bd504e86f280f0e48e085f1bc1b16308cb2ad895
  • main default protected
  • step-3263
  • feature/plugins-cli
  • feature/vite
  • step-2484-peerreview
  • biest/issue-5051
  • tests/simplify-jsonapi-tests
  • fix/typo-in-1a70031
  • feature/broadcasting
  • database-seeders-and-factories
  • feature/peer-review-2
  • feature-feedback-jsonapi
  • feature/peerreview
  • feature/balloon-plus
  • feature/stock-images-unsplash
  • tic-2588
  • 5.0
  • 5.2
  • biest/unlock-blocks
  • biest-1514
21 results

ActionMenu.php

Blame
  • Forked from Stud.IP / Stud.IP
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    FeedbackRange.interface.php 1.41 KiB
    <?php
    
    /**
     * Interface FeedbackRange
     *
     * The FeedbackRange defines methods for range objects
     * that can reveive feedback.
     *
     * @author Nils Gehrke <nils.gehrke@uni-goettingen.de>
     */
    
    interface FeedbackRange
    {
        /**
         * Returns a human-friendly representation of the FeedbackRange object instance's name.
         *
         * @return string A human-friendly name for the FeedbackRange object instance.
         */
        public function getRangeName();
    
        /**
         * Returns the icon object that shall be used with the FeedbackRange object instance.
         *
         * @param string $role role of icon
         * @return Icon icon for the FeedbackRange object instance.
         */
        public function getRangeIcon($role);
    
        /**
         * Returns the URL of FeedbackRange view, where the object instance is visible
         * together with the related feedback element(s).
         * @return string Path that is usable with the url_for and link_for methods.
         */
        public function getRangeUrl();
    
        /**
         * Returns the course id of FeedbackRange object instance
         * @return string course_id
         */
        public function getRangeCourseId();
    
        /**
         * Returns the accessebility of FeedbackRange object instance for current active user
         * @param string $user_id    optional; use this ID instead of $GLOBALS['user']->id
         * @return bool range object accessebility
         */
        public function isRangeAccessible(string $user_id = null): bool;
    }