Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 114... Línea 114...
114
    public function get_cron_lock() {
114
    public function get_cron_lock() {
115
        return $this->cronlock;
115
        return $this->cronlock;
116
    }
116
    }
Línea 117... Línea 117...
117
 
117
 
118
    /**
-
 
119
     * Setter for $blocking.
-
 
120
     *
-
 
121
     * Please note that task blocking is no longer supported.
-
 
122
     * If you are using it in older versions of Moodle you are strongly advised to rewrite your code
-
 
123
     * as has a detrimental impact upon performance.
-
 
124
     *
118
    /**
125
     * @deprecated since Moodle 4.4 See MDL-67667
-
 
126
     * @todo Remove in MDL-81509
119
     * @deprecated since Moodle 4.4 See MDL-67667
127
     */
120
     */
128
    #[\core\attribute\deprecated(
121
    #[\core\attribute\deprecated(
129
        replacement: null,
122
        replacement: null,
-
 
123
        since: '4.4',
130
        since: '4.4',
124
        mdl: 'MDL-67667',
-
 
125
        reason: 'Blocking tasks are no longer supported',
131
        reason: 'Blocking tasks are no longer supported',
126
        final: true,
132
    )]
127
    )]
133
    public function set_blocking($blocking) {
128
    public function set_blocking() {
134
        \core\deprecation::emit_deprecation_if_present([$this, __FUNCTION__]);
129
        \core\deprecation::emit_deprecation([$this, __FUNCTION__]);
Línea 135... Línea 130...
135
    }
130
    }
136
 
-
 
137
    /**
-
 
138
     * Getter for $blocking.
-
 
139
     *
131
 
140
     * @return bool
-
 
141
     * @deprecated since Moodle 4.4 See MDL-67667
132
    /**
142
     * @todo Remove in MDL-81509
133
     * @deprecated since Moodle 4.4 See MDL-67667
143
     */
134
     */
144
    #[\core\attribute\deprecated(
135
    #[\core\attribute\deprecated(
-
 
136
        replacement: null,
145
        replacement: null,
137
        since: '4.4',
-
 
138
        mdl: 'MDL-67667',
146
        since: '4.4',
139
        reason: 'Blocking tasks are no longer supported',
147
        reason: 'Blocking tasks are no longer supported',
140
        final: true,
148
    )]
141
    )]
149
    public function is_blocking() {
-
 
150
        \core\deprecation::emit_deprecation_if_present([$this, __FUNCTION__]);
142
    public function is_blocking() {
Línea 151... Línea 143...
151
        return false;
143
        \core\deprecation::emit_deprecation([$this, __FUNCTION__]);
152
    }
144
    }
153
 
145